Slightly improved
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
parent
60db2959bb
commit
827af8e79e
@ -404,7 +404,7 @@
|
|||||||
</iron-pages>
|
</iron-pages>
|
||||||
</app-drawer>
|
</app-drawer>
|
||||||
<app-header-layout>
|
<app-header-layout>
|
||||||
<app-header reveals slot="header">
|
<app-header id="appHeader" reveals slot="header">
|
||||||
<div id="header" class="layout horizontal center">
|
<div id="header" class="layout horizontal center">
|
||||||
<paper-icon-button hidden$="[[!user]]" icon="search" on-tap="drawerToggle"></paper-icon-button>
|
<paper-icon-button hidden$="[[!user]]" icon="search" on-tap="drawerToggle"></paper-icon-button>
|
||||||
<iron-pages class="flex" attr-for-selected="mode" selected="[[mode]]">
|
<iron-pages class="flex" attr-for-selected="mode" selected="[[mode]]">
|
||||||
@ -866,6 +866,16 @@
|
|||||||
this._loadAlbums();
|
this._loadAlbums();
|
||||||
this._loadDays();
|
this._loadDays();
|
||||||
this._loadPhotos();
|
this._loadPhotos();
|
||||||
|
|
||||||
|
if (this.mode == "slideshow") {
|
||||||
|
this.async(function() {
|
||||||
|
this.$.appHeader.removeAttribute("reveals");
|
||||||
|
this.$.appHeader.setAttribute("fixed", true);
|
||||||
|
}, 3000);
|
||||||
|
} else {
|
||||||
|
this.$.appHeader.setAttribute("reveals", true);
|
||||||
|
this.$.appHeader.removeAttribute("fixed");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
breadcrumb: function(path) {
|
breadcrumb: function(path) {
|
||||||
@ -1979,6 +1989,15 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onResize: function(event) {
|
onResize: function(event) {
|
||||||
|
if (this.mode == "slideshow") {
|
||||||
|
this.$.appHeader.removeAttribute("reveals");
|
||||||
|
this.$.appHeader.setAttribute("fixed", true);
|
||||||
|
this.async(function() {
|
||||||
|
this.$.appHeader.setAttribute("reveals", true);
|
||||||
|
this.$.appHeader.removeAttribute("fixed");
|
||||||
|
}, 3000);
|
||||||
|
}
|
||||||
|
|
||||||
this.debounce("resize", function() {
|
this.debounce("resize", function() {
|
||||||
this.triggerVisibilityChecks();
|
this.triggerVisibilityChecks();
|
||||||
var width = 200;
|
var width = 200;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user