fix floormsg css
This commit is contained in:
parent
cceb89bc1b
commit
f997bc33e9
20
libs/core.js
20
libs/core.js
@ -2791,7 +2791,7 @@ core.prototype.resize = function(clientWidth, clientHeight) {
|
|||||||
}
|
}
|
||||||
// 各元素大小的变量声明
|
// 各元素大小的变量声明
|
||||||
var gameGroupWidth, gameGroupHeight, borderRight,
|
var gameGroupWidth, gameGroupHeight, borderRight,
|
||||||
canvasWidth, canvasTop, canvasLeft,
|
canvasWidth, canvasTop, // canvasLeft,
|
||||||
statusBarWidth, statusBarHeight, statusBarBorder,
|
statusBarWidth, statusBarHeight, statusBarBorder,
|
||||||
statusWidth, statusHeight, statusMaxWidth,statusLabelsLH,
|
statusWidth, statusHeight, statusMaxWidth,statusLabelsLH,
|
||||||
toolBarWidth, toolBarHeight, toolBarTop, toolBarBorder,
|
toolBarWidth, toolBarHeight, toolBarTop, toolBarBorder,
|
||||||
@ -2835,7 +2835,7 @@ core.prototype.resize = function(clientWidth, clientHeight) {
|
|||||||
|
|
||||||
gameGroupWidth = width
|
gameGroupWidth = width
|
||||||
canvasTop = tempTopBarH;
|
canvasTop = tempTopBarH;
|
||||||
canvasLeft = 0;
|
// canvasLeft = 0;
|
||||||
toolBarWidth = statusBarWidth = width;
|
toolBarWidth = statusBarWidth = width;
|
||||||
statusBarHeight = tempTopBarH; //一共有3行加上两个padding空隙
|
statusBarHeight = tempTopBarH; //一共有3行加上两个padding空隙
|
||||||
statusBarBorder = '3px #fff solid';
|
statusBarBorder = '3px #fff solid';
|
||||||
@ -2859,7 +2859,7 @@ core.prototype.resize = function(clientWidth, clientHeight) {
|
|||||||
gameGroupWidth = width + DEFAULT_BAR_WIDTH * scale;
|
gameGroupWidth = width + DEFAULT_BAR_WIDTH * scale;
|
||||||
gameGroupHeight = width;
|
gameGroupHeight = width;
|
||||||
canvasTop = 0;
|
canvasTop = 0;
|
||||||
canvasLeft = DEFAULT_BAR_WIDTH * scale;
|
// canvasLeft = DEFAULT_BAR_WIDTH * scale;
|
||||||
toolBarWidth = statusBarWidth = DEFAULT_BAR_WIDTH * scale;
|
toolBarWidth = statusBarWidth = DEFAULT_BAR_WIDTH * scale;
|
||||||
statusBarHeight = scale * statusLineHeight * count + SPACE * 2; //一共有9行加上两个padding空隙
|
statusBarHeight = scale * statusLineHeight * count + SPACE * 2; //一共有9行加上两个padding空隙
|
||||||
statusBarBorder = '3px #fff solid';
|
statusBarBorder = '3px #fff solid';
|
||||||
@ -2887,7 +2887,7 @@ core.prototype.resize = function(clientWidth, clientHeight) {
|
|||||||
gameGroupHeight = DEFAULT_CANVAS_WIDTH;
|
gameGroupHeight = DEFAULT_CANVAS_WIDTH;
|
||||||
canvasWidth = DEFAULT_CANVAS_WIDTH;
|
canvasWidth = DEFAULT_CANVAS_WIDTH;
|
||||||
canvasTop = 0;
|
canvasTop = 0;
|
||||||
canvasLeft = DEFAULT_BAR_WIDTH;
|
// canvasLeft = DEFAULT_BAR_WIDTH;
|
||||||
|
|
||||||
toolBarWidth = statusBarWidth = DEFAULT_BAR_WIDTH;
|
toolBarWidth = statusBarWidth = DEFAULT_BAR_WIDTH;
|
||||||
statusBarHeight = statusLineHeight * count + SPACE * 2; //一共有9行
|
statusBarHeight = statusLineHeight * count + SPACE * 2; //一共有9行
|
||||||
@ -2923,11 +2923,21 @@ core.prototype.resize = function(clientWidth, clientHeight) {
|
|||||||
width: canvasWidth + unit,
|
width: canvasWidth + unit,
|
||||||
height: canvasWidth + unit,
|
height: canvasWidth + unit,
|
||||||
top: canvasTop + unit,
|
top: canvasTop + unit,
|
||||||
left: canvasLeft + unit,
|
right: 0,
|
||||||
|
// left: canvasLeft + unit,
|
||||||
|
|
||||||
border: '3px #fff solid',
|
border: '3px #fff solid',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'floorMsgGroup',
|
||||||
|
rules:{
|
||||||
|
width: canvasWidth + unit,
|
||||||
|
height: canvasWidth + unit,
|
||||||
|
top: 0,
|
||||||
|
right: 0,
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'statusBar',
|
id: 'statusBar',
|
||||||
rules:{
|
rules:{
|
||||||
|
|||||||
@ -138,11 +138,11 @@ html, body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#floorMsgGroup {
|
#floorMsgGroup {
|
||||||
width: 100%;
|
/* width: 100%;
|
||||||
height: 100%;
|
height: 100%; */
|
||||||
|
/* top: 0;
|
||||||
|
right: 0; */
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: none;
|
display: none;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user