While working on a project I am writing a subclass of the FlexTable
class. One of the features I'm trying to implement is column resizing
(via click/drag on the column header). To accomplish this I have one
flex table set as the header and another flex table used to hold all
the data.
The way I've implemented this is that each column in the header has a
small HTML object at the very right edge of the header. When the user
hovers over this object the cursor changes to indicate resizing
functionality. On mouse down the user can start to drag and resize the
column. On mouse up the resizing stops and the flex table containing
the data will have its columns resized to match the column widths of
the columns in the header flex table.
With that said, my problem lies with Google Chrome. In I.E. and
Firefox the above procedure works great. But in Chrome, the bottom
table will not resize when the user completes the mouse up. I can get
the column to match the correct size by putting a widget into the
column of the appropriate size and then making it disappear... but
this looks terrible.
So my question is this, does anyone have any idea how I can get around
this behavior in Google Chrome? I've have my customers using Chrome
since it is executing the program the fastest that I've seen so far.
The code I'm using to resize columns:
public void onMouseUp(Widget sender, int x, int y){
//m_DataTable is the FlexTable that contains the actual data.
//m_Col is the column that this object (a DragHandle) resizes
m_MouseDown = false;
DOM.releaseCapture(sender.getElement());
m_DataTable.getColumnFormatter().setWidth(this.m_Col, String.valueOf
(this.m_curWidth)+"px");
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---