As a side note, I tried to simply comment out the test entirely
// if (editingEnabled || (width >= minSize.x * scaleFactor && width <= maxSize.x * scaleFactor && height >= minSize.y * scaleFactor && height <= maxSize.y * scaleFactor))
to force it to be executed no matter what and it changed the size of the window but did not paint the empty space… and when I switched back to a smaller size window, it did not shrink it…
So I am not entirely sure what is going on, but it is definitely broken…
Yan