[codenameone-discussions] Re: scrollRectToVisible Table component not behaving

2019-01-27 Thread Shai Almog
scrollRectToVisible would work if the rectangle was there. The main problem 
is that the table is rebuilt from scratch every time you use set model. 
In this thread I explained the right solution to your problem: 
https://groups.google.com/d/msg/codenameone-discussions/bOTc1-QzE08/xazvNnz9FAAJ

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9db0cd63-8985-40a5-831d-a992bd96cbf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: com.codename1.ui.table.Table scroll behaviour issue

2019-01-27 Thread Shai Almog
Table is written on top of Table layout, you can just recreate the layout 
and apply it again. 
See the code of Table: 
https://github.com/codenameone/CodenameOne/blob/master/CodenameOne/src/com/codename1/ui/table/Table.java#L214-L224

FYI you can debug directly into the Codename One sources to get insight 
into how things work. This post is a bit old but most of this still works 
as is: 
https://www.codenameone.com/blog/how-to-use-the-codename-one-sources.html

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7c0fe461-9f34-4c4c-a701-a81e44034f4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Menus on simulator not working

2019-01-27 Thread Shai Almog
We'll try to verify the fix again. Which OS/Java version are you using?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d42073f0-67e2-47cc-a8b6-68cd2dfa8b43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] scrollRectToVisible Table component not behaving

2019-01-27 Thread shop . service . assistant
If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
Desktop OS Windows 10 Pro
Simulator Latest
Device PC, Android, IOS

Have a simple table that a Button Action Event calls the following code.

Rectangle rect = table.getSelectedRect();
table.scrollRectToVisible(rect.getX(), 
rect.getY(), rect.getWidth(), rect.getHeight(), this);

The Table contains 60+ rows.

Scroll Down and click to select row say 60
Then click the Button to force a scroll and the Page scrolls to the top 
where 1/2 the top page is blank

See attached pic

In general, I use scrollRectToVisible when the user adds a new row in a 
large list, we want to scroll to the bottom for example.

Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f4dba420-082a-49d5-9332-fd0e060f3236%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: com.codename1.ui.table.Table scroll behaviour issue

2019-01-27 Thread shop . service . assistant
Thanks, I'm not pushing you to make any changes more over just to make sure 
I am not overlooking another package that may exist that will be more 
feature rich.
I appreciate your support and do not want to jeopardize same.

>From what I have read, the TableLayout 
 
class is fixed in size and can not be altered (add/delete rows dynamically) 
like Table can.

If this is the case, I think it best for us to continue to work with Table.

Thanks for all your support.

Regards.

On Saturday, January 26, 2019 at 11:17:10 PM UTC-5, Shai Almog wrote:
>
> JTable is pretty frustrating too... Unlike table you have more state than 
> the renderers/editors mess. 
> You can use the TableLayout directly if you prefer. 
> I think this is pretty doable in table with the current feature set I just 
> don't have the time right now to do that.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/48f89210-ae22-49a4-9486-15c25b69684b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.