tween on positions
This commit is contained in:
@@ -95,6 +95,7 @@ class EICController extends Controller {
|
||||
<header class="cols-2 right">
|
||||
<h1>${options.title || ''}</h1>
|
||||
<div class="controls">
|
||||
${(options.withSettings) ? '<button eicbutton data-id="${view._sparcId}" basic primary rounded xsmall class="icon-cog settings" title="settings"></button>' :''}
|
||||
<button eicbutton data-id="${view._sparcId}" basic primary rounded xsmall class="icon-copy shrink" title="shrink"></button>
|
||||
<button eicbutton data-id="${view._sparcId}" basic primary rounded xsmall class="icon-square-o expand" title="expand"></button>
|
||||
<button eicbutton data-id="${view._sparcId}" basic primary rounded xsmall class="icon-cancel close" title="close"></button>
|
||||
@@ -136,6 +137,11 @@ class EICController extends Controller {
|
||||
content.addEventListener('expanded', this.onFocusRequest.bind(this));
|
||||
content.addEventListener('shrinked', this.onFocusRequest.bind(this));
|
||||
|
||||
if(options.withSettings && (typeof(view.settings) == 'function')){
|
||||
let settings = content.querySelector('header button.settings');
|
||||
settings.addEventListener('click', view.settings.bind(view));
|
||||
}
|
||||
|
||||
content.setAttribute('sparc-id', view._sparcId);
|
||||
|
||||
let parent = Controller._template.view.find('.app-workspace');
|
||||
|
||||
@@ -14,6 +14,9 @@ class EICDomContent extends View {
|
||||
|
||||
get expanded() { return this.el.hasAttribute('expanded'); }
|
||||
|
||||
|
||||
//TODO: memorize size & position
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -28,6 +31,9 @@ class EICDomContent extends View {
|
||||
this.DOMContentResized()
|
||||
}
|
||||
|
||||
//TODO: restore to previous memorize size & position
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -271,8 +271,6 @@ class myUser extends app.LoadedClasses.User {
|
||||
setPreference(path, value) {
|
||||
if(app.MessageBus) {
|
||||
let segments = path.split('.');
|
||||
|
||||
console.log('=====>',this, this.preferences)
|
||||
let pointer = this.preferences;
|
||||
|
||||
for(let i = 0; i < segments.length - 1; i++) {
|
||||
|
||||
Reference in New Issue
Block a user