Commit d4cb4b2b authored by maximXbs's avatar maximXbs

fixed Sankore-1167 issue

parent 8154be27
......@@ -3,7 +3,7 @@
xmlns:ub="http://uniboard.mnemis.com/widgets"
id="http://uniboard.mnemis.com/widgets/notes"
version="1.2"
width="302"
width="320"
height="260"
ub:resizable="true">
......
......@@ -3,16 +3,20 @@
padding: 0;
}
body{
body, html{
margin:0px;
height: 96%;
}
.ubw-container{
min-width: 280px;
min-height: 200px;
width: 99%;
height: 100%;
text-overflow: ellipsis;
left:0px;
top:0px;
margin:0px;
/*background-color: #edf7c0;*/
background-image: url(../images/back.png);
overflow: hidden;
border-right: 1px solid rgb(252, 252, 220);
......@@ -143,29 +147,29 @@ table{
margin-left:3px;
}
.ubw-dropdown li.out{
.ubw-dropdown li.out{
padding-left: 5px;
color:#444444;
border-left:1px solid rgb(231, 231, 233);
border-right:1px solid rgb(231, 231, 233);
background-image: url(../images/button_out.gif);
}
}
.ubw-dropdown li.over{
.ubw-dropdown li.over{
padding-left: 5px;
color:#eeeeee;
border-left:1px solid rgb(140, 140, 140);
border-right:1px solid rgb(140, 140, 140);
background-image: url(../images/button_out_dark.png);
}
}
.ubw-dropdown li.ubw-dropdown-top-corners{
.ubw-dropdown li.ubw-dropdown-top-corners{
border-top:1px solid rgb(241, 241, 244);
}
}
.ubw-dropdown li.ubw-dropdown-bottom-corners{
.ubw-dropdown li.ubw-dropdown-bottom-corners{
border-bottom:1px solid rgb(221, 221, 223);
}
}
.ubw-button-body{
position:relative;
......
......@@ -29,8 +29,6 @@
// Default options
jQuery.fn.ubwidget.defaults = {
width:250,
height:300
};
// Shadows
......
......@@ -16,8 +16,8 @@
function init(){
var ubwidget = $("#ubwidget").ubwidget({
width:360,
height:240
// width:360,
// height:240
});
var checkMinimize = false;
......@@ -108,6 +108,7 @@ function init(){
minimize.click(
function(){
$('.ubw-container').css("min-height", "26px")
$('.ubw-container').animate({
height:"26px"
},500);
......@@ -127,7 +128,7 @@ function init(){
var lastHeight = String(minimizedHeight)+'px';
$('.ubw-container').animate({
height: lastHeight
},500);
},500, function(){$('.ubw-container').css("min-height", "200px").css("height","")});
maximize.hide();
minimize.show();
......@@ -190,8 +191,8 @@ function init(){
text = window.sankore.preference('noteText', text);
currentFontSize = window.sankore.preference('fontSize', defaultFontSize);
$('.ubw-container').css({
width:window.innerWidth - 2,
height:window.innerHeight - 20
// width:window.innerWidth - 2,
// height:window.innerHeight - 20
});
if(checkMinimize){
......@@ -212,25 +213,24 @@ function init(){
winwidth = window.innerWidth;
winheight = window.innerHeight;
if(winwidth <= 290)
{
window.resizeTo(290,winheight);
}
if(winheight <= 100)
{
window.resizeTo(winwidth,100);
}
if(winheight > 600)
{
window.resizeTo(winwidth,600);
}
$('.ubw-container').width(winwidth-2);
// if(winwidth <= 290)
// {
// window.resizeTo(290,winheight);
// }
// if(winheight <= 100)
// {
// window.resizeTo(winwidth,100);
// }
// if(winheight > 600)
// {
// window.resizeTo(winwidth,600);
// }
// $('.ubw-container').width(winwidth-2);
//
if(checkMinimize)
minimizedHeight = winheight-40;
else
$('.ubw-container').height(winheight-40);
controlTextField();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment