You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Paul Hastings <pa...@gmail.com> on 2014/01/13 07:24:56 UTC
minor MobileGrid issue
the experimental MobileGrid is pretty slick, covers most of what we need in a
datagrid for mobile & is pretty snappy even with 100s of rows of data.
i think we've run into a minor issue w/its display. in a case when there are
enough rows to fully fill a mobile datagrid component w/a fixed height & width,
the component seems to overflow itself & leak out into any components below it.
this case:
- nexus7 (2013),
- portrait mode,
- the mobile datagrid's height & width are fixed (ie not expressed in %),
- has only two columns, one filled by a label function (i guess that makes the
rows variable in height but i didn't see an option for that, guess its automagic)
- data is just text
- MobileGrid overflows onto a row of buttons below it in a HGroup
- noticed when scrolling the rows up, there's a row of whitespace at the bottom
our workaround is to shove a 30pixel spacer between the grid & the buttons.
is this known behavior or are we doing something wrong? i think we're
understanding how the component works & its use here is pretty simple:
<ns:MobileGrid id="metersDG" dataProvider="{searchResults}" height="600"
width="950">
<ns:columns>
<ns:MobileGridColumn dataField="meterID" headerText="Meter ID" width="225"/>
<ns:MobileGridColumn dataField="name" headerText="Customer"
labelFunction="customerLabeler" width="700"/>
</ns:columns>
</ns:MobileGrid>
changing the height doesn't fix it, neither does top/bottom padding, only the
spacer hack.
thanks.
Re: minor MobileGrid issue
Posted by Paul Hastings <pa...@gmail.com>.
On 1/14/2014 4:47 PM, Sugan Naicker wrote:
> Hi Paul,
>
> Getting a drop box page not found error on links.
maurice said he attached the files to the JIRA issue (and they appear to be
there). so i removed them. see:
https://issues.apache.org/jira/browse/FLEX-34038
Re: minor MobileGrid issue
Posted by Paul Hastings <pa...@gmail.com>.
On 1/14/2014 5:54 PM, Maurice Amsellem wrote:
> Actually, Paul has already tested on Nexus 7 ( the "reference" Android device).
> Sometimes other Android devices (eg. Samsung) have different behavior.
> I will also test on iOS when I will start working on the issue.
and just an FYI, i was seeing something similar in the device emulators as well.
RE: minor MobileGrid issue
Posted by Maurice Amsellem <ma...@systar.com>.
Actually, Paul has already tested on Nexus 7 ( the "reference" Android device).
Sometimes other Android devices (eg. Samsung) have different behavior.
I will also test on iOS when I will start working on the issue.
Maurice
-----Message d'origine-----
De : Sugan Naicker [mailto:Sugan@Dev-X.co.za]
Envoyé : mardi 14 janvier 2014 11:39
À : Maurice Amsellem; users@flex.apache.org; paul.hastings@gmail.com
Objet : RE: minor MobileGrid issue
Hi,
Great. Thanks. I will check and test on an android device.
Regards,
Sugan Naicker
South Africa
-----Original Message-----
From: Maurice Amsellem [mailto:maurice.amsellem@systar.com]
Sent: 14 January 2014 12:02 PM
To: Sugan Naicker; users@flex.apache.org; paul.hastings@gmail.com
Subject: RE: minor MobileGrid issue
The images and files are now attached to the JIRA ticket.
Maurice
-----Message d'origine-----
De�: Sugan Naicker [mailto:Sugan@Dev-X.co.za]
Envoy�: mardi 14 janvier 2014 10:48
��: users@flex.apache.org; paul.hastings@gmail.com; Maurice Amsellem
Objet�: RE: minor MobileGrid issue
Hi Paul,
Getting a drop box page not found error on links.
Regards,
Sugan Naicker
South Africa
-----Original Message-----
From: Paul Hastings [mailto:paul.hastings@gmail.com]
Sent: 13 January 2014 08:53 PM
To: Maurice Amsellem; users@flex.apache.org
Subject: Re: minor MobileGrid issue
On 1/13/2014 9:24 PM, Maurice Amsellem wrote:
> Ok, can you please file a JIRA ticket at:
https://issues.apache.org/jira/browse/FLEX-34038
in the meantime, a couple of screenshots:
https://dl.dropboxusercontent.com/u/130830/MobileGrid/noWorkAround.png
https://dl.dropboxusercontent.com/u/130830/MobileGrid/workAround.png
test case source here:
https://dl.dropboxusercontent.com/u/130830/MobileGrid/mobileGridTest.zip
RE: minor MobileGrid issue
Posted by Sugan Naicker <Su...@Dev-X.co.za>.
Hi,
Great. Thanks. I will check and test on an android device.
Regards,
Sugan Naicker
South Africa
-----Original Message-----
From: Maurice Amsellem [mailto:maurice.amsellem@systar.com]
Sent: 14 January 2014 12:02 PM
To: Sugan Naicker; users@flex.apache.org; paul.hastings@gmail.com
Subject: RE: minor MobileGrid issue
The images and files are now attached to the JIRA ticket.
Maurice
-----Message d'origine-----
De�: Sugan Naicker [mailto:Sugan@Dev-X.co.za]
Envoy�: mardi 14 janvier 2014 10:48
��: users@flex.apache.org; paul.hastings@gmail.com; Maurice Amsellem
Objet�: RE: minor MobileGrid issue
Hi Paul,
Getting a drop box page not found error on links.
Regards,
Sugan Naicker
South Africa
-----Original Message-----
From: Paul Hastings [mailto:paul.hastings@gmail.com]
Sent: 13 January 2014 08:53 PM
To: Maurice Amsellem; users@flex.apache.org
Subject: Re: minor MobileGrid issue
On 1/13/2014 9:24 PM, Maurice Amsellem wrote:
> Ok, can you please file a JIRA ticket at:
https://issues.apache.org/jira/browse/FLEX-34038
in the meantime, a couple of screenshots:
https://dl.dropboxusercontent.com/u/130830/MobileGrid/noWorkAround.png
https://dl.dropboxusercontent.com/u/130830/MobileGrid/workAround.png
test case source here:
https://dl.dropboxusercontent.com/u/130830/MobileGrid/mobileGridTest.zip
RE: minor MobileGrid issue
Posted by Sugan Naicker <Su...@Dev-X.co.za>.
Hi Paul,
Getting a drop box page not found error on links.
Regards,
Sugan Naicker
South Africa
-----Original Message-----
From: Paul Hastings [mailto:paul.hastings@gmail.com]
Sent: 13 January 2014 08:53 PM
To: Maurice Amsellem; users@flex.apache.org
Subject: Re: minor MobileGrid issue
On 1/13/2014 9:24 PM, Maurice Amsellem wrote:
> Ok, can you please file a JIRA ticket at:
https://issues.apache.org/jira/browse/FLEX-34038
in the meantime, a couple of screenshots:
https://dl.dropboxusercontent.com/u/130830/MobileGrid/noWorkAround.png
https://dl.dropboxusercontent.com/u/130830/MobileGrid/workAround.png
test case source here:
https://dl.dropboxusercontent.com/u/130830/MobileGrid/mobileGridTest.zip
Re: minor MobileGrid issue
Posted by Paul Hastings <pa...@gmail.com>.
On 1/13/2014 9:24 PM, Maurice Amsellem wrote:
> Ok, can you please file a JIRA ticket at:
https://issues.apache.org/jira/browse/FLEX-34038
in the meantime, a couple of screenshots:
https://dl.dropboxusercontent.com/u/130830/MobileGrid/noWorkAround.png
https://dl.dropboxusercontent.com/u/130830/MobileGrid/workAround.png
test case source here:
https://dl.dropboxusercontent.com/u/130830/MobileGrid/mobileGridTest.zip
RE: minor MobileGrid issue
Posted by Maurice Amsellem <ma...@systar.com>.
Ok, can you please file a JIRA ticket at:
https://issues.apache.org/jira/browse/FLEX
And a test case would be nice, as I will have to reproduce it on iOS (I don't have an Android device to test on).
Thanks for reporting.
Maurice
-----Message d'origine-----
De : Paul Hastings [mailto:paul.hastings@gmail.com]
Envoyé : lundi 13 janvier 2014 15:05
À : Maurice Amsellem; users@flex.apache.org
Objet : Re: minor MobileGrid issue
On 1/13/2014 4:51 PM, Maurice Amsellem wrote:
> Does this issue show up in iOS as well, or only Android ?
the app is android only (which makes me eternally grateful to this client ;-) & actually specific to nexus 7, so no idea.
they bought a bunch of tablets for their field work & settled on the nexus 7 (cheap, pretty nice screen--their maps look stunning on it-- and a decent battery life).
do you need a test case?
thanks, and again this seems like a really good start on mobile datagrid.
Re: minor MobileGrid issue
Posted by Paul Hastings <pa...@gmail.com>.
On 1/13/2014 4:51 PM, Maurice Amsellem wrote:
> Does this issue show up in iOS as well, or only Android ?
the app is android only (which makes me eternally grateful to this client ;-) &
actually specific to nexus 7, so no idea.
they bought a bunch of tablets for their field work & settled on the nexus 7
(cheap, pretty nice screen--their maps look stunning on it-- and a decent
battery life).
do you need a test case?
thanks, and again this seems like a really good start on mobile datagrid.
RE: minor MobileGrid issue
Posted by Maurice Amsellem <ma...@systar.com>.
Hi Paul,
Does this issue show up in iOS as well, or only Android ?
Maurice
-----Message d'origine-----
De : Paul Hastings [mailto:paul.hastings@gmail.com]
Envoyé : lundi 13 janvier 2014 07:25
À : users@flex.apache.org
Objet : minor MobileGrid issue
the experimental MobileGrid is pretty slick, covers most of what we need in a datagrid for mobile & is pretty snappy even with 100s of rows of data.
i think we've run into a minor issue w/its display. in a case when there are enough rows to fully fill a mobile datagrid component w/a fixed height & width, the component seems to overflow itself & leak out into any components below it.
this case:
- nexus7 (2013),
- portrait mode,
- the mobile datagrid's height & width are fixed (ie not expressed in %),
- has only two columns, one filled by a label function (i guess that makes the rows variable in height but i didn't see an option for that, guess its automagic)
- data is just text
- MobileGrid overflows onto a row of buttons below it in a HGroup
- noticed when scrolling the rows up, there's a row of whitespace at the bottom
our workaround is to shove a 30pixel spacer between the grid & the buttons.
is this known behavior or are we doing something wrong? i think we're understanding how the component works & its use here is pretty simple:
<ns:MobileGrid id="metersDG" dataProvider="{searchResults}" height="600"
width="950">
<ns:columns>
<ns:MobileGridColumn dataField="meterID" headerText="Meter ID" width="225"/>
<ns:MobileGridColumn dataField="name" headerText="Customer"
labelFunction="customerLabeler" width="700"/>
</ns:columns>
</ns:MobileGrid>
changing the height doesn't fix it, neither does top/bottom padding, only the spacer hack.
thanks.