# Window resize (aka surface.resizable) not functioning in P2D and P3D modes

**URL:** https://discourse.processing.org/t/window-resize-aka-surface-resizable-not-functioning-in-p2d-and-p3d-modes/23586
**Category:** Coding Questions
**Created:** [August 31, 2020, 4:10pm UTC](https://discourse.processing.org/t/window-resize-aka-surface-resizable-not-functioning-in-p2d-and-p3d-modes/23586 "2020-08-31T16:10:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Tarik](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@Tarik](https://discourse.processing.org/u/Tarik)
#### Post date: [August 31, 2020, 4:10pm UTC](https://discourse.processing.org/t/window-resize-aka-surface-resizable-not-functioning-in-p2d-and-p3d-modes/23586/1 "2020-08-31T16:10:00Z")

</div>

Hi all,

On windows, surface.setResizable(true) has no effect whatsoever when the sketch runs in P2D or P3D mode. In the default mode, everything runs as expected.

Are there any known solutions?

thanks! -t

(and here’s a little example below for quick copy-paste-testing purposes)

```auto
void setup() {
  size(200, 200, P2D);
  surface.setResizable(true);
}

void draw() {
  background(204);
  line(0, 0, width, height);
  line(width, 0, 0, height); 
}

```

---

<div class="post-metadata">

### Author: ![raron](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/raron/32/13651_2.png) [@raron](https://discourse.processing.org/u/raron)
#### Post date: [August 31, 2020, 4:26pm UTC](https://discourse.processing.org/t/window-resize-aka-surface-resizable-not-functioning-in-p2d-and-p3d-modes/23586/2 "2020-08-31T16:26:56Z")

</div>

It is resizeable, but the mouse pointer don’t change to the “resize pointer” (arrow thing). And also you have to hit the window just _outside_ the border (or exactly on the border too, I think). Not inside of it. Except on the title bar, there it is just below the top border.

Tested it just now on Windows 10 Pro, 64-bit, in both P2D and P3D mode.

EDIT: Oh, and welcome to the forum! 🙂

---

<div class="post-metadata">

### Author: ![Tarik](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@Tarik](https://discourse.processing.org/u/Tarik)
#### Post date: [September 1, 2020, 11:10am UTC](https://discourse.processing.org/t/window-resize-aka-surface-resizable-not-functioning-in-p2d-and-p3d-modes/23586/3 "2020-09-01T11:10:50Z")

</div>

Thank you!! Both for your correct answer and for your warm welcome.

---

<div class="post-metadata">

### Author: ![raron](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/raron/32/13651_2.png) [@raron](https://discourse.processing.org/u/raron)
#### Post date: [September 1, 2020, 11:23am UTC](https://discourse.processing.org/t/window-resize-aka-surface-resizable-not-functioning-in-p2d-and-p3d-modes/23586/4 "2020-09-01T11:23:59Z")

</div>

No problem. You providing a small code snippet to test made all the difference!
