Commit 34a862a5 authored by Akari Labs's avatar Akari Labs

cursed electron support work -a

parent 15be6d06
......@@ -19,7 +19,7 @@
background-color: #444;
opacity: 0.85;
color: white;
font-family: sans-serif;
font-family: monospace;
}
.kwm_win.kwm_active {
......@@ -34,6 +34,8 @@
background-color: #888;
cursor: default;
-webkit-app-region: drag;
}
.kwm_win.kwm_active .kwm_win_hdr {
......@@ -52,6 +54,8 @@
background-color: white;
border: none;
padding: 0px;
-webkit-app-region: no-drag;
}
.kwm_win_hdr_close:hover {
......
......@@ -52,8 +52,11 @@ function KWindow(attr, children) {
element.style.left = (attr.x || 32) + 'px';
element.style.top = (attr.y || 32) + 'px';
element.style.width = (attr.width || 256) + 'px';
element.style.height = (attr.height || 256) + 'px';
var width = attr.width;
element.style.width = width ? (Number.isNaN(+width) ? width : width + 'px') : '256px';
var height = attr.height;
element.style.height = height ? (Number.isNaN(+height) ? height : height + 'px') : '256px';
return element;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment