mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
03bf261bb4
commit
24c1e4e9b6
@ -13,4 +13,3 @@
|
||||
<script src="index.js"></script>
|
||||
</body>
|
||||
|
||||
|
||||
|
@ -189,7 +189,7 @@ Volcanos("onaction", {help: "控件交互", list: [],
|
||||
},
|
||||
_resize: function(can, hide) {
|
||||
can.Timer(10, function() {
|
||||
var width = ((parseInt(can.Conf("width"))-60)||can._target.offsetWidth) - (hide? can.ui.project.offsetWidth+10: 0)
|
||||
var width = ((parseInt(can.Conf("width"))-30)||can._target.offsetWidth) - (hide? can.ui.project.offsetWidth+10: 0)
|
||||
can.page.Modify(can, can.ui.profile, {style: {width: width}})
|
||||
width -= can.ui.preview.offsetWidth + 20
|
||||
can.page.Modify(can, can.ui.content, {style: {"max-width": width}})
|
||||
|
@ -546,7 +546,7 @@ Volcanos("onfigure", {help: "图形绘制", list: [],
|
||||
+ " + (" + target.Val("width") + "," + target.Val("height") + ")"
|
||||
},
|
||||
},
|
||||
}, ["/plugin/local/wiki/draw/heart.js"])
|
||||
}, [])
|
||||
Volcanos("onaction", {help: "组件菜单", list: [
|
||||
["grid", 1, 2, 3, 4, 5, 10, 20],
|
||||
["stroke-width", 1, 2, 3, 4, 5],
|
||||
|
@ -147,8 +147,6 @@ Volcanos("onaction", {help: "组件菜单", list: ["编辑", ["view", "横向",
|
||||
})
|
||||
},
|
||||
_resize: function(can, layout) {
|
||||
can.Conf("width", layout.width)
|
||||
can.Conf("height", layout.height)
|
||||
can.page.Modify(can, can._target, {style: layout})
|
||||
can.page.Select(can, can._output, "div.profile", function(item) {
|
||||
can.page.Modify(can, item, {style: {
|
||||
@ -224,7 +222,7 @@ Volcanos("onaction", {help: "组件菜单", list: ["编辑", ["view", "横向",
|
||||
default:
|
||||
can.run(event, ["inner"].concat(cmds), function(msg) {
|
||||
cb(msg), can.Timer(10, function() {
|
||||
can.onaction._resize(sub, layout)
|
||||
// can.onaction._resize(sub, layout)
|
||||
})
|
||||
}, true)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user