View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0025572 | Lazarus | LCL | public | 2014-01-21 08:52 | 2014-02-16 10:25 |
Reporter | Timl | Assigned To | Zeljan Rikalo | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x86 | OS | Mageia Linux | ||
Product Version | 1.2.0RC2 | ||||
Target Version | 1.2.0 | ||||
Summary | 0025572: Regression in TGroupBox in Gtk2 | ||||
Description | In the attached project, when label3 is set Autosize=True, when the Change Text button is clicked the caption on Label3 disappears. | ||||
Steps To Reproduce | 1) Compile and run the project 2) Click the 'Change Text' button - Label3 caption does not display 3) Set Autosize to False ( you may need to resize the label to display its initial caption correctly ) 4) Compile and run the project 5) Click the 'Change Text' button - Label3 caption shows correctly i.e 'Refreshed Label' An alternative way of showing the problem is to set the colour of Label3 without changing anything else in the project. When the 'Change Text' button is clicked the label is no longer visible. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 44093 | ||||
LazTarget | 1.2 | ||||
Widgetset | GTK 2 | ||||
Attached Files |
|
|
|
|
Updated subject The label disappears in ButtonDown too, if label3 is not updated. When any of the labels is changed TGtk2WidgetSet.InvalidateRect receive a rect relative to the clientrect of the groupbox. This does not take in account that the clientrect has an offset, as the groupbox frame is not part of it. Therefore the groupbox repaints the wrong area. Not sure if rect needs to be fixed before, or within InvalidateRect |
|
hm...maybe TGtk2GroupBox returns wrong client rect (with offset). I'll check that |
|
Please test and close if ok. Will be added to the merge list for RC3 |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-01-21 08:52 | Timl | New Issue | |
2014-01-21 08:52 | Timl | File Added: invisible_label.tar.gz | |
2014-01-21 15:52 | Martin Friebe | LazTarget | => 1.2 |
2014-01-21 15:52 | Martin Friebe | Target Version | => 1.2.0 |
2014-01-21 15:52 | Martin Friebe | Steps to Reproduce Updated | View Revisions |
2014-01-21 17:26 | Martin Friebe | Note Added: 0072593 | |
2014-01-21 17:26 | Martin Friebe | Summary | Regression in TLabel in Gtk2 => Regression in TGroupBox in Gtk2 |
2014-02-16 08:38 | Zeljan Rikalo | Note Added: 0073074 | |
2014-02-16 10:12 | Zeljan Rikalo | Assigned To | => Zeljan Rikalo |
2014-02-16 10:12 | Zeljan Rikalo | Status | new => assigned |
2014-02-16 10:25 | Zeljan Rikalo | Fixed in Revision | => 44093 |
2014-02-16 10:25 | Zeljan Rikalo | Note Added: 0073080 | |
2014-02-16 10:25 | Zeljan Rikalo | Status | assigned => resolved |
2014-02-16 10:25 | Zeljan Rikalo | Resolution | open => fixed |