mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 11:20:36 +02:00
Gtk3: applied scrollbars size to client rect if overlay scrolling is enabled.
This commit is contained in:
parent
46023f7b4b
commit
834f380863
@ -5523,12 +5523,12 @@ begin
|
|||||||
if Assigned(AWindow) then
|
if Assigned(AWindow) then
|
||||||
begin
|
begin
|
||||||
Bar := getHorizontalScrollbar;
|
Bar := getHorizontalScrollbar;
|
||||||
if (Bar <> nil) and Gtk3IsWidget(Bar) and Bar^.get_visible then
|
if (Bar <> nil) and Gtk3IsWidget(Bar) and Bar^.get_visible and GTK3WidgetSet.OverlayScrolling then
|
||||||
HOffset := Bar^.get_allocated_height
|
HOffset := Bar^.get_allocated_height
|
||||||
else
|
else
|
||||||
HOffset := 0;
|
HOffset := 0;
|
||||||
Bar := getVerticalScrollbar;
|
Bar := getVerticalScrollbar;
|
||||||
if (Bar <> nil) and Gtk3IsWidget(Bar) and Bar^.get_visible then
|
if (Bar <> nil) and Gtk3IsWidget(Bar) and Bar^.get_visible and GTK3WidgetSet.OverlayScrolling then
|
||||||
VOffset := Bar^.get_allocated_width
|
VOffset := Bar^.get_allocated_width
|
||||||
else
|
else
|
||||||
VOffset := 0;
|
VOffset := 0;
|
||||||
@ -7838,13 +7838,13 @@ begin
|
|||||||
AViewPort^.get_view_window^.get_geometry(@x, @y, @w, @h);
|
AViewPort^.get_view_window^.get_geometry(@x, @y, @w, @h);
|
||||||
|
|
||||||
Bar := getHorizontalScrollbar;
|
Bar := getHorizontalScrollbar;
|
||||||
if (Bar <> nil) and Bar^.get_visible then
|
if (Bar <> nil) and Gtk3IsWidget(Bar) and Bar^.get_visible and GTK3WidgetSet.OverlayScrolling then
|
||||||
HOffset := Bar^.get_allocated_height
|
HOffset := Bar^.get_allocated_height
|
||||||
else
|
else
|
||||||
HOffset := 0;
|
HOffset := 0;
|
||||||
|
|
||||||
Bar := getVerticalScrollbar;
|
Bar := getVerticalScrollbar;
|
||||||
if (Bar <> nil) and Gtk3IsWidget(Bar) and Bar^.get_visible then
|
if (Bar <> nil) and Gtk3IsWidget(Bar) and Bar^.get_visible and GTK3WidgetSet.OverlayScrolling then
|
||||||
VOffset := Bar^.get_allocated_width
|
VOffset := Bar^.get_allocated_width
|
||||||
else
|
else
|
||||||
VOffset := 0;
|
VOffset := 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user