mirror of https://github.com/buggins/dlangui.git
Support window resize/add scrollbars when content is too big on X11.
This commit is contained in:
parent
27c8e70f5b
commit
774a33aae4
|
@ -428,9 +428,14 @@ class X11Window : DWindow {
|
||||||
Log.d("Open GL support is disabled");
|
Log.d("Open GL support is disabled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_mainWidget)
|
if (_mainWidget) {
|
||||||
|
_mainWidget.measure(SIZE_UNSPECIFIED, SIZE_UNSPECIFIED);
|
||||||
|
_windowRect.right = _dx;// hack to set windowRect, remove when _windowRect will be full supported on X11
|
||||||
|
_windowRect.bottom = _dy;
|
||||||
|
adjustWindowOrContentSize(_mainWidget.measuredWidth, _mainWidget.measuredHeight);
|
||||||
_mainWidget.setFocus();
|
_mainWidget.setFocus();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected final void changeWindowState(int action, Atom firstProperty, Atom secondProperty = None) nothrow
|
protected final void changeWindowState(int action, Atom firstProperty, Atom secondProperty = None) nothrow
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue