Re: DataGrid and using Event.setCapture to implement column resizing.

2013-07-19 Thread David
Hi Andrea,

I know, I created the issue in the tracker :-) But still I am trying to
understand why the setCapture is not working since that is normally the
proper way to handle drag code.

I see that someone made something work:
https://github.com/gchatelet/GwtResizableDraggableColumns

But I also read that it breaks sorting, which is not acceptable to me. In
my implementation sorting works, if only I could get the setCapture working.

Somehow it is still a shame that the core GWT team abandons adding features
to the base widgets.
Sure, patches welcome I know what that means, don't bother pointing that
out. I hope I ever find the time to contribute something, I would love too,
but I have to do that in my spare time - which is hard to find with young
kids at home.

David

On Thu, Jul 18, 2013 at 11:57 PM, Andrea Boscolo andrew...@gmail.comwrote:

 Not an answer to your problems, but other people in the past have followed
 the same road. Have a look at
 http://code.google.com/p/google-web-toolkit/issues/detail?id=6401

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




DataGrid and using Event.setCapture to implement column resizing.

2013-07-18 Thread stuckagain
Hi,
 
I'm currently implementing column resizing on DataGrid but I stumbled upon 
2 problems. Maybe somebody from the GWT team can help me out to solve this ?
It looks to me that those are bugs/features of the current 
DatatGrid/CellTable(s) ... but it would be great if I can get a complete 
working solution instead.
 
Problem 1: Event.setCapture does not seem to work when used in a Header.
 
My solution is to have a custom header that consumes mousedown,mouseup and 
mousemove events.
I check if a mousedown is happening on the last pixels of the column I use 
setCapture on the Element.
But, the capture does not work, events are still dispatched as if I did not 
call the setCapture.
I get the mousemove events in the other header cells instead of only on the 
capturing column header.
 
Is there a solution that allows me to capture all events when resizing the 
column ? The user has to be careful right now not to go outside the table 
header.
 
Problem 2: setColumnWidth does not force an onResize on the DataGrid.
 
To force a column resize I invoke the setColumnWidth method. My DataGrid 
table is wider than the allowed space, and so it needs an horizontal 
scrollbar.
However the scrollbar does not adjust automatically when I call the 
setColumnWidth method. It does however update when I resize the window.
 
I did a workaround by forcing onResize after calling the setColumnWidth, 
but shouln't the DataGrid do this automatically ?
 
David
 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: DataGrid and using Event.setCapture to implement column resizing.

2013-07-18 Thread Andrea Boscolo
Not an answer to your problems, but other people in the past have followed 
the same road. Have a look at 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6401

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.