resizing datagrids on mobile

Bob Sneidar bobs at twft.com
Mon Oct 1 11:57:17 EDT 2012


Whenever resizing, may I humbly suggest starting with a default set of sizes, and always resizing from that instead of resizing from a previous resize. Rounding math is an ugly beast. 

Bob


On Sep 30, 2012, at 1:52 PM, Monte Goulding wrote:

> Hi Andre
> 
> It's not that complicated. Just resize everything on the template and reset the datagrid. Any use of pixels in your layout script needs to be altered to add a scaling factor but other than that your good. You also need to change the line height if you have a fixed height form. I haven't tested this with tables yet.... Not sure if I'd use a table on a mobile anyway.
> 
> I'm considering adding this to mergDataGridScroller. I recently added (haven't released yet) bouncing which is cool. 
> 
> Cheers
> 
> --
> M E R Goulding
> Software development services
> 
> mergExt - There's an external for that!
> 
> On 01/10/2012, at 2:39 AM, Andre Garzia <andre at andregarzia.com> wrote:
> 
>> Hey Folks,
>> 
>> Have anyone here tried resizing a datagrid on mobile platforms? Resizing
>> the rect of the grid is easy but how do we resize cell size and textsize?
>> At this moment I am rolling my poor version of a datagrid like table
>> because I can't think of a way to resize the inner controls of the datagrid.
>> 
>> =/
>> 
>> -- 
>> http://www.andregarzia.com -- All We Do Is Code.
>> http://fon.nu -- minimalist url shortening service.
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list