El editor de imagenes ahora usa un dialogo modal
This commit is contained in:
parent
a43176563e
commit
7f63c9bb16
|
@ -158,9 +158,12 @@ Htk.ColumnImage = new Class
|
||||||
|
|
||||||
this.editorClosedHandler = this._onEditorClose.bind (this);
|
this.editorClosedHandler = this._onEditorClose.bind (this);
|
||||||
editor.on ('closed', this.editorClosedHandler);
|
editor.on ('closed', this.editorClosedHandler);
|
||||||
|
|
||||||
this.popup = new Htk.Popup ();
|
this.popup = new Htk.Popup
|
||||||
this.popup.setChild (editor);
|
({
|
||||||
|
modal: true,
|
||||||
|
child: editor
|
||||||
|
});
|
||||||
this.popup.show (cell.img);
|
this.popup.show (cell.img);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -191,8 +191,11 @@ Htk.Image = new Class
|
||||||
editor.on ('file-uploaded', this._onFileUpload, this);
|
editor.on ('file-uploaded', this._onFileUpload, this);
|
||||||
editor.on ('closed', this._onEditorClose, this);
|
editor.on ('closed', this._onEditorClose, this);
|
||||||
|
|
||||||
this.popup = new Htk.Popup ();
|
this.popup = new Htk.Popup
|
||||||
this.popup.setChild (editor);
|
({
|
||||||
|
modal: true,
|
||||||
|
child: editor
|
||||||
|
});
|
||||||
this.popup.show (this.node);
|
this.popup.show (this.node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -359,8 +359,9 @@ td.cell-image img
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
overflow: hidden;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 0.1em;
|
border-radius: 0.15em;
|
||||||
box-shadow: 0 0 0.4em rgba(1, 1, 1, 0.6);
|
box-shadow: 0 0 0.4em rgba(1, 1, 1, 0.6);
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue