Thank you.
I am new to Polymer. Couldn't figure it out. Had no clue I was restricting 
the iron-media-query by dom-binding to the wrong template.

On Thursday, September 10, 2015 at 1:46:45 PM UTC+5:30, [email protected] 
wrote:
>
> If this is part of a dom-module why are you dom-binding the outer 
> template? I would hazard a guess (without a more complete code snippet) I 
> would say this template is outside the context it was previously and 
> variables/properties are not assigned as they were.
>
> But this is all just speculation based on the first observation.
>
>
> On Wednesday, September 9, 2015 at 1:10:07 PM UTC-7, [email protected] 
> wrote:
>>
>>  <template is="dom-bind">
>>                             <iron-media-query query="(min-width: 1008px)" 
>> query-matches="{{largeScreen}}">
>>                             </iron-media-query>
>>                             <template is="dom-if" if="{{largeScreen}}">
>>                                 <span class="right-container">
>>                     <paper-icon-button src="{{userImage}}" 
>> icon="account-box"></paper-icon-button>
>>                     <paper-icon-button 
>> icon="settings"></paper-icon-button>
>>                 </span>
>>                             </template>
>>                             <template is="dom-if" if="{{!largeScreen}}">
>>                                 <span></span>
>> <paper-icon-button icon="settings"></paper-icon-button>
>>                             </template>
>>                         </template>
>> It works directly when paper-toolbar was inside paper-header-panel inside 
>> body. But since I have moved the whole code to a new dom-module, it has 
>> stopped working.
>> I am not getting any error messages in the console.
>>
>> Any suggestions?
>
>

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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/8e0fc7bd-ec94-43b8-9e38-be56184b6dee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to