fixed Sankore-1167 issue

preferencesAboutTextFull
maximXbs 12 years ago
parent 8154be2730
commit d4cb4b2b01
  1. 2
      resources/library/applications/Notes.wgt/config.xml
  2. 8
      resources/library/applications/Notes.wgt/css/ubwidget.css
  3. 2
      resources/library/applications/Notes.wgt/js/jquery.ubwidget.js
  4. 44
      resources/library/applications/Notes.wgt/js/ubw-main.js

@ -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);

@ -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();
}

Loading…
Cancel
Save