1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00

opt windows

This commit is contained in:
IT 老营长 @云轩领航-创始人 2022-03-04 23:33:14 +08:00
parent b1656ca505
commit d569d76299
4 changed files with 4 additions and 7 deletions

View File

@ -487,10 +487,7 @@ Volcanos("onlayout", {help: "页面布局", list: [], _init: function(can, targe
})
})
can.user.isMobile || can.page.Select(can, target, html.FIELDSET_MAIN, function(field, index) {
var scroll = 1
if (!can.user.isMobile && !can.user.isMacOSX) { scroll = 18 }
can.user.isMobile || can.page.Select(can, target, html.FIELDSET_MAIN, function(field, index) { var scroll = 1
can.page.style(can, field, html.HEIGHT, height, html.WIDTH, width-scroll)
can.page.Select(can, target, [[html.FIELDSET_MAIN, html.DIV_OUTPUT]], function(output) {
height -= can.page.Select(can, field, html.DIV_ACTION)[0].offsetHeight

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=0.8,user-scalable=no">
<meta name="viewport" content="width=device-width,initial-scale=0.8,maximum-scale=0.8,user-scalable=0">
<meta charset="utf-8"><title>volcanos</title>
<link rel="stylesheet" type="text/css" href="/page/index.css">
<link rel="stylesheet" type="text/css" href="/page/cache.css">

View File

@ -54,7 +54,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg)
_cmd: function(can, item, next) {
can.base.Copy(item, {
height: can.Conf(html.HEIGHT)-can.Conf(html.MARGIN_Y)+(can.user.isWindows? 17: 0),
width: can.Conf(html.WIDTH)-can.Conf(html.MARGIN_X),
width: can.Conf(html.WIDTH),
opts: can.misc.Search(can),
})
can.onappend.plugin(can, item, function(sub, meta, skip) {

View File

@ -182,7 +182,7 @@ Volcanos("onimport", {help: "导入数据", _init: function(can, msg, cb, target
}, can.base.isFunc(cb) && cb(sub)
}, target)
},
layout: function(can) { var height = can.ConfHeight(), width = can.ConfWidth()
layout: function(can) { var height = can.ConfHeight()-(can.user.mod.isCmd && can.user.isWindows? 20: 0), width = can.ConfWidth()
can.page.styleWidth(can, can.ui.profile_output, can.profile_size[can.onexport.keys(can)]||(width-can.ui.project.offsetWidth)/2)
can.page.styleWidth(can, can.ui.content, width-can.ui.project.offsetWidth-can.ui.profile.offsetWidth-26)