Gtk2: fixed bsToolWin sizing. issue #29553

git-svn-id: trunk@51564 -
This commit is contained in:
zeljko 2016-02-10 09:00:33 +00:00
parent 1cab92748c
commit 9fb950e45d

View File

@ -696,7 +696,7 @@ begin
win_gravity := gtk_window_get_gravity({%H-}PGtkWindow(AForm.Handle));
end;
//debugln('TGtk2WSWinControl.ConstraintsChange A ',GetWidgetDebugReport(Widget),' max=',dbgs(Geometry.max_width),'x',dbgs(Geometry.max_height));
if (AForm.BorderStyle in [bsDialog, bsSingle]) then
if (AForm.BorderStyle in [bsDialog, bsSingle, bsToolWindow]) then
gtk_window_set_geometry_hints({%H-}PGtkWindow(AForm.Handle), nil, @Geometry,
GDK_HINT_POS or GDK_HINT_MIN_SIZE or GDK_HINT_MAX_SIZE)
else