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

Commit 0b318ed

Browse files
committed
Merge pull request #15 from albeec13/patch-1
fix for secondary issue in #9
2 parents 2ebbcdc + e7d4bdd commit 0b318ed

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

core-scaffold.html

+30-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,29 @@
2727
</core-scaffold>
2828
2929
Use `mode` to control the header and scrolling behavior of `core-header-panel`
30-
and `responsiveWidth` to change the layout of the scaffold.
30+
and `responsiveWidth` to change the layout of the scaffold. Use 'disableSwipe'
31+
to disable swipe-to-open on toolbar.
3132
32-
To have the content fits to the main area, use `fit` attribute.
33+
Use `rightDrawer` to move position of folding toolbar to the right instead of
34+
left (default). This will also position content to the left of the menu button
35+
instead of the right. You can use `flex` within your `tool` content to push the menu
36+
button to the far right:
37+
38+
<core-scaffold rightDrawer>
39+
<div tool flex >Title</div>
40+
</core-scaffold>
41+
42+
You may also add `middle` or `bottom` classes to your `tool` content when using tall
43+
modes to adjust vertical content positioning in the core-toolbar (e.g. when using
44+
mode="waterfall-tall"):
45+
46+
<core-scaffold rightDrawer mode="waterfall-tall">
47+
<div tool flex >Title</div>
48+
<div tool horizontal layout flex center-justified class="middle">Title-middle</div>
49+
<div tool horizontal layout flex end-justified class="bottom">Title-bottom</div>
50+
</core-scaffold>
51+
52+
To have the content fit to the main area, use `fit` attribute.
3353
3454
<core-scaffold>
3555
<core-header-panel navigation flex mode="seamed">
@@ -90,8 +110,13 @@
90110
<core-header-panel id="headerPanel" main mode="{{mode}}">
91111

92112
<core-toolbar>
93-
<core-icon-button id="menuButton" icon="menu" on-tap="{{togglePanel}}"></core-icon-button>
113+
<template if="{{!rightDrawer}}">
114+
<core-icon-button id="menuButton" icon="menu" on-tap="{{togglePanel}}"></core-icon-button>
115+
</template>
94116
<content select="[tool]"></content>
117+
<template if="{{rightDrawer}}">
118+
<core-icon-button id="menuButton" icon="menu" on-tap="{{togglePanel}}"></core-icon-button>
119+
</template>
95120
</core-toolbar>
96121

97122
<content select="*"></content>
@@ -146,7 +171,8 @@
146171
responsiveWidth: '600px',
147172

148173
/**
149-
* If true, position the drawer to the right.
174+
* If true, position the drawer to the right. Also place menu icon to
175+
* the right of the content instead of left.
150176
*
151177
* @attribute rightDrawer
152178
* @type boolean

0 commit comments

Comments
 (0)