mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 09:14: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}) },
|
share: function(event, can) { can.core.CallFunc(can.ondetail.share, {event: event, can: can}) },
|
||||||
onsize: function(can, height) { var margin = 0
|
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, "")
|
can.page.style(can, can._output, html.MARGIN, "0px", html.HEIGHT, "", html.MAX_HEIGHT, "")
|
||||||
if (can._output.offsetHeight < height-margin) {
|
if (can._output.offsetHeight < height-margin) {
|
||||||
margin += (height-margin-can._output.offsetHeight)/2
|
margin += (height-margin-can._output.offsetHeight)/2
|
||||||
} else {
|
} else {
|
||||||
can.page.style(can, can._output, html.MAX_HEIGHT, height-margin)
|
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)
|
can.onexport.scroll(can)
|
||||||
},
|
},
|
||||||
refresh: function(event, can) { can.misc.Search(can, {river: can.Conf(chat.RIVER), storm: can.Conf(chat.STORM)}) },
|
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