I'm still having trouble getting this to work. Right now my code looks like
this https://gist.github.com/8322252
In my test I get an error at line 142 of polymer-grid-layout.js saying that
node is undefined.
var node = nodes[row - 1];
if (node.hasAttribute('v-flex') || node.hasAttribute('flex')) { // <--
this guy
return -1;
}
On Wednesday, December 11, 2013 7:28:36 AM UTC-8, Erik Grimes wrote:
>
> Thanks. This information is very helpful ! I stared at the example for
> quite some time and the lightbulb never went off ;) Maybe changing the
> example panels to use id's 1-5 would make it easier to make the connection?
> Taking it a step further, maybe polymer-grid-layout should just use the ids
> in the matrix instead of the index? Then the example would be:
>
> [
> ['toolbar', 'toolbar', 'toolbar'],
> ['sidebar', 'workspace','outputToolbar'],
> ['sidebar', 'workspace', 'output']
> }
>
>
> On Tuesday, December 10, 2013 9:54:52 PM UTC-6, Dominic Cooney wrote:
>>
>> Hi Erik,
>>
>> I don't understand how polymer-grid-layout works, however I do know a
>> couple of things that might be useful...
>>
>> polymer-grid-layout/index.html<https://github.com/Polymer/polymer-grid-layout/blob/master/index.html>
>> has
>> a working example, which is a useful starting point.
>>
>> You don't put content in the polymer-grid-layout. Instead it provides
>> layout as a service to its parent element.
>>
>> <fun-factoids>
>> <polymer-grid-layout ...></polymer-grid-layout>
>> <fun-fact>I like food</fun-fact>
>> ...
>> </fun-factoids>
>>
>> Set the auto attribute and it will lay out all of the children of its
>> parent (all of its siblings.) If you only want to lay out a subset of them,
>> you can set the nodes property to a list of nodes.
>>
>> The layout property is basically a picture of how you want the layout
>> done. For example:
>>
>> [[2, 2, 2],
>> [1, 3, 3],
>> [1, 3, 3]]
>>
>> 1 means the first child, 2 the second, etc. You can kind of imagine the
>> edges of the picture are sticky and the elements stretch with them. Easiest
>> thing is to play with it, it'll make sense.
>>
>> HTH!
>>
>> Dominic
>>
>>
>>
>> On Wed, Dec 11, 2013 at 3:40 AM, Erik Grimes <[email protected]> wrote:
>>
>>> Hello again!
>>>
>>> Would someone explain briefly how polymer-grid-layout works? How do I
>>> use it to create a grid?
>>> What's the arrangements property and how does it relate to the nodes?
>>>
>>> Thanks,
>>>
>>> Erik
>>>
>>> Follow Polymer on Google+: plus.google.com/107187849809354688692
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Polymer" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Email SLA <http://goto.google.com/dc-email-sla> •
>> Google+<https://plus.sandbox.google.com/111762620242974506845/posts>
>>
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.