mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 13:38:27 +02:00
Gtk3: do not call resize_children when adding page since it produce mess with TGtk3Notebook sizing.
This commit is contained in:
parent
ea9c716f85
commit
6a2333c747
@ -5340,11 +5340,8 @@ begin
|
||||
if IsWidgetOK then
|
||||
begin
|
||||
Gtk3Page := TGtk3Page(ACustomPage.Handle);
|
||||
with PGtkNoteBook(GetContainerWidget)^ do begin
|
||||
with PGtkNoteBook(GetContainerWidget)^ do
|
||||
insert_page(Gtk3Page.Widget, Gtk3Page.FPageLabel, AIndex);
|
||||
// Check why this give sometimes: Gtk-WARNING: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node notebook, owner GtkNotebook)
|
||||
resize_children;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user