From dbe7d41949795ce37e6bb6af90095933c089804a Mon Sep 17 00:00:00 2001 From: harveyshao Date: Thu, 3 Jun 2021 16:35:30 +0800 Subject: [PATCH] opt some --- frame.js | 2 +- page/index.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frame.js b/frame.js index 79b1a5f4..ad31a480 100644 --- a/frame.js +++ b/frame.js @@ -486,7 +486,7 @@ Volcanos("onlayout", {help: "页面布局", list: [], _init: function(can, targe } if (left+target.offsetWidth>window.innerWidth) { left = window.innerWidth - target.offsetWidth } - if (top+target.offsetHeight>window.innerHeight) { top = window.innerHeight - target.offsetHeight } + if (top+target.offsetHeight>window.innerHeight-100) { top = window.innerHeight - target.offsetHeight - 100 } var layout = {left: left, top: top} can.page.Modify(can, target, {style: layout}) diff --git a/page/index.css b/page/index.css index efa20a8b..0f91c1e8 100644 --- a/page/index.css +++ b/page/index.css @@ -101,6 +101,9 @@ input[name=cmd] { input[name=date] { width:150px; } +input[name=text] { + width:160px; +} input[type=text] { box-shadow: 4px 4px 10px 1px #626bd0; background-color:cyan; color:black;