Community
Participate
Working Groups
The problem is that we get an resize event for the last column when we resize the control this is not the desired behaviour
Can we fix this for M6?
Boris I'm looking into this tomorrow when I'm back in company and have a Linux box available. I think the fix is trivial by not updating the LayoutData if the event.widget is the last column but I need a box to test.
Ok. The problem we are facing is that on Linux-Gtk: 1. We get an Resize-Event for the last table column when we resize the control (this can be worked around by checking if the event.widget is the last column). This doesn't happen on MacOSX 2. We get intermediate resize event when we are resizing the table this is somehow strange and I can't say at the moment why this is happening because we are the only one assigning sizes to table-columns and are setting a flag so that the event is not processed. Maybe the control-adapter is called asynchronosly on GTK, maybe someone from SWT can shade some light into this. This doesn't happen on MacOSX
Created attachment 61524 [details] Test-Table to see whether Resize is happening on last column Can so one try and post output on Win32 platform?
Created attachment 61525 [details] Patch to identify intermediate events on GTK Can someone run on Win32 and post the output
Output in Linux-GTK for TableTest: ----------8<---------- BEFORE OPEN EVENT TRIGGERED COL 1 EVENT TRIGGERED COL 2 AFTER OPEN EVENT TRIGGERED COL 2 EVENT TRIGGERED COL 2 EVENT TRIGGERED COL 2 EVENT TRIGGERED COL 2 ----------8<---------- Output for TableLayout-Snippet ----------8<---------- SETTING WIDTH START SETTING WIDTH END SETTING NEW DATA: 636 SETTING WIDTH START SETTING WIDTH END SETTING NEW DATA: 639 SETTING WIDTH START SETTING WIDTH END SETTING WIDTH START SETTING WIDTH END SETTING WIDTH START SETTING WIDTH END SETTING NEW DATA: 636 SETTING WIDTH START SETTING WIDTH END SETTING WIDTH START SETTING WIDTH END SETTING NEW DATA: 629 SETTING WIDTH START SETTING WIDTH END SETTING WIDTH START SETTING WIDTH END SETTING NEW DATA: 596 ----------8<----------
TableTest on Windows XP: ---- BEFORE OPEN AFTER OPEN ---- Snippet016TableLayout on Windows XP: ---- SETTING WIDTH START SETTING WIDTH END SETTING WIDTH START SETTING WIDTH END ----
I just started the snippets - was I supposed to resize anything?
Created attachment 63338 [details] Proposed patch to make layout's work on GTK We need to test on OSX and Win32
tested patch on MacOSX and it works
Tested on all major platforms and released > 20070412
Verified in I20070502-1800 by code inspection