Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Add attribute 'fullWindow' #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sidkat
Copy link

@sidkat sidkat commented Feb 19, 2015

The attribute 'fullWindow' can be set if <core-scroll-header-panel> is used as a 'global' component containing all other visible components (except an optional <core-drawer-panel>!).

Setting this attribute fixes issues #1, #15 and #16.

It (optionally) enables "document scroll" (see the discussion here).

@googlebot
Copy link

Thanks for your pull request.

It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/.

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits.

Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name.

@sidkat
Copy link
Author

sidkat commented Feb 19, 2015

CLA signed

@googlebot
Copy link

CLAs look good, thanks!

@@ -26,6 +30,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
overflow-y: auto;
}

:host([fullWindow]) #mainContainer {
position: relative;
width: calc(100% - {{!drawerPanel.narrow && drawerPanel.drawerWidth}});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bindings wont work in <style> outside of native shadow dom. You'll need to use <core-style> for something like this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it does work. But ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it works with native shadow dom. It doesn't work under the polyfill (other browsers besides chrome). See Polymer/polymer#270 (comment)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, okay

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#36 should work now under the polyfill. (Hope so)

@ebidel
Copy link
Contributor

ebidel commented Feb 19, 2015

Left two important comments. cc @frankiefu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants