Will it work?
This commit is contained in:
parent
79f7c4c16f
commit
f74c86f4b1
19 changed files with 193 additions and 78 deletions
|
|
@ -4,7 +4,6 @@
|
|||
#image-viewer {
|
||||
@include center-children();
|
||||
display: none;
|
||||
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
@ -22,6 +21,7 @@
|
|||
#cancel {
|
||||
@include square($icon-size);
|
||||
position: absolute;
|
||||
box-sizing: content-box;
|
||||
padding: $normal-margin;
|
||||
right: 0;
|
||||
top: 0;
|
||||
|
|
|
|||
|
|
@ -8,9 +8,8 @@ export class PageImageViewer extends PageElement {
|
|||
public constructor() {
|
||||
super();
|
||||
const root = createElement(generate());
|
||||
(root.querySelector("#cancel") as HTMLElement).onclick = () =>
|
||||
PageImageViewer.hide(root);
|
||||
this.setElement(root);
|
||||
this.query("#cancel").onclick = () => PageImageViewer.hide(root);
|
||||
}
|
||||
|
||||
protected handleEvent(event: PageEvent, parent: PageElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue