mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
add some
This commit is contained in:
parent
e7933a68f3
commit
1fd4be665b
@ -55,14 +55,14 @@ Volcanos(chat.ONACTION, {list: [mdb.CREATE, web.SHARE, web.REFRESH], _init: func
|
||||
}) },
|
||||
share: function(event, can) { can.core.CallFunc(can.ondetail.share, {event: event, can: can}) },
|
||||
onsize: function(can, height) { var margin = 0
|
||||
if (can.page.isDisplay(can._action)) { margin = can._action.offsetHeight + html.PLUGIN_MARGIN }
|
||||
if (can.page.isDisplay(can._action)) { margin = can._action.offsetHeight + html.PLUGIN_MARGIN } var _margin = margin
|
||||
can.page.style(can, can._output, html.MARGIN, "0px", html.HEIGHT, "", html.MAX_HEIGHT, "")
|
||||
if (can._output.offsetHeight < height-margin) {
|
||||
margin += (height-margin-can._output.offsetHeight)/2
|
||||
} else {
|
||||
can.page.style(can, can._output, html.MAX_HEIGHT, height-margin)
|
||||
}
|
||||
can.page.style(can, can._output, html.MARGIN, margin+"px 0px 0px")
|
||||
can.page.style(can, can._output, html.MARGIN, margin+"px 0px "+(margin-_margin)+"px")
|
||||
can.onexport.scroll(can)
|
||||
},
|
||||
refresh: function(event, can) { can.misc.Search(can, {river: can.Conf(chat.RIVER), storm: can.Conf(chat.STORM)}) },
|
||||
|
Loading…
x
Reference in New Issue
Block a user