|
|
Currently, Fl_Flex’s set_size(Widget*, int size ) cals w->resize(0,0,size,size). This is problematic when the widget is hidden as it can create refresh problems once is shown(), as the coordinates will stay at 0,0 briefly.
The solution is to call the Widget’s w->size( size, size ); instead, so that the Widget’s coordinates are not reset.
Find attached a patch for it.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/62FA48DB-7248-4F51-A5D1-A7E4E8DB9947%40gmail.com.
diff --git a/src/Fl_Flex.cxx b/src/Fl_Flex.cxx
index 028c08d1f..f8435bdfc 100644
--- a/src/Fl_Flex.cxx
+++ b/src/Fl_Flex.cxx
@@ -242,7 +242,7 @@ void Fl_Flex::end() {
void Fl_Flex::set_size(Fl_Widget *w, int size) {
if (size <= 0)
size = 0;
- w->resize(0, 0, size, size);
+ w->size(size, size);
int idx = -1;
for (int i = 0; i < set_size_size_; i++) {
—
Gonzalo Garramuno
ggarra13@gmail.com
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/62FA48DB-7248-4F51-A5D1-A7E4E8DB9947%40gmail.com.
[ Direct Link to Message ] | |
|
| |