fixed Sankore-1167 issue

preferencesAboutTextFull
maximXbs 12 years ago
parent 8154be2730
commit d4cb4b2b01
  1. 2
      resources/library/applications/Notes.wgt/config.xml
  2. 24
      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" xmlns:ub="http://uniboard.mnemis.com/widgets"
id="http://uniboard.mnemis.com/widgets/notes" id="http://uniboard.mnemis.com/widgets/notes"
version="1.2" version="1.2"
width="302" width="320"
height="260" height="260"
ub:resizable="true"> ub:resizable="true">

@ -3,16 +3,20 @@
padding: 0; padding: 0;
} }
body{ body, html{
margin:0px; margin:0px;
height: 96%;
} }
.ubw-container{ .ubw-container{
min-width: 280px;
min-height: 200px;
width: 99%;
height: 100%;
text-overflow: ellipsis; text-overflow: ellipsis;
left:0px; left:0px;
top:0px; top:0px;
margin:0px; margin:0px;
/*background-color: #edf7c0;*/
background-image: url(../images/back.png); background-image: url(../images/back.png);
overflow: hidden; overflow: hidden;
border-right: 1px solid rgb(252, 252, 220); border-right: 1px solid rgb(252, 252, 220);
@ -143,29 +147,29 @@ table{
margin-left:3px; margin-left:3px;
} }
.ubw-dropdown li.out{ .ubw-dropdown li.out{
padding-left: 5px; padding-left: 5px;
color:#444444; color:#444444;
border-left:1px solid rgb(231, 231, 233); border-left:1px solid rgb(231, 231, 233);
border-right:1px solid rgb(231, 231, 233); border-right:1px solid rgb(231, 231, 233);
background-image: url(../images/button_out.gif); background-image: url(../images/button_out.gif);
} }
.ubw-dropdown li.over{ .ubw-dropdown li.over{
padding-left: 5px; padding-left: 5px;
color:#eeeeee; color:#eeeeee;
border-left:1px solid rgb(140, 140, 140); border-left:1px solid rgb(140, 140, 140);
border-right:1px solid rgb(140, 140, 140); border-right:1px solid rgb(140, 140, 140);
background-image: url(../images/button_out_dark.png); 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); 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); border-bottom:1px solid rgb(221, 221, 223);
} }
.ubw-button-body{ .ubw-button-body{
position:relative; position:relative;

@ -29,8 +29,6 @@
// Default options // Default options
jQuery.fn.ubwidget.defaults = { jQuery.fn.ubwidget.defaults = {
width:250,
height:300
}; };
// Shadows // Shadows

@ -16,8 +16,8 @@
function init(){ function init(){
var ubwidget = $("#ubwidget").ubwidget({ var ubwidget = $("#ubwidget").ubwidget({
width:360, // width:360,
height:240 // height:240
}); });
var checkMinimize = false; var checkMinimize = false;
@ -108,6 +108,7 @@ function init(){
minimize.click( minimize.click(
function(){ function(){
$('.ubw-container').css("min-height", "26px")
$('.ubw-container').animate({ $('.ubw-container').animate({
height:"26px" height:"26px"
},500); },500);
@ -127,7 +128,7 @@ function init(){
var lastHeight = String(minimizedHeight)+'px'; var lastHeight = String(minimizedHeight)+'px';
$('.ubw-container').animate({ $('.ubw-container').animate({
height: lastHeight height: lastHeight
},500); },500, function(){$('.ubw-container').css("min-height", "200px").css("height","")});
maximize.hide(); maximize.hide();
minimize.show(); minimize.show();
@ -190,8 +191,8 @@ function init(){
text = window.sankore.preference('noteText', text); text = window.sankore.preference('noteText', text);
currentFontSize = window.sankore.preference('fontSize', defaultFontSize); currentFontSize = window.sankore.preference('fontSize', defaultFontSize);
$('.ubw-container').css({ $('.ubw-container').css({
width:window.innerWidth - 2, // width:window.innerWidth - 2,
height:window.innerHeight - 20 // height:window.innerHeight - 20
}); });
if(checkMinimize){ if(checkMinimize){
@ -212,25 +213,24 @@ function init(){
winwidth = window.innerWidth; winwidth = window.innerWidth;
winheight = window.innerHeight; winheight = window.innerHeight;
if(winwidth <= 290) // if(winwidth <= 290)
{ // {
window.resizeTo(290,winheight); // window.resizeTo(290,winheight);
} // }
if(winheight <= 100) // if(winheight <= 100)
{ // {
window.resizeTo(winwidth,100); // window.resizeTo(winwidth,100);
} // }
if(winheight > 600) // if(winheight > 600)
{ // {
window.resizeTo(winwidth,600); // window.resizeTo(winwidth,600);
} // }
$('.ubw-container').width(winwidth-2); // $('.ubw-container').width(winwidth-2);
//
if(checkMinimize) if(checkMinimize)
minimizedHeight = winheight-40; minimizedHeight = winheight-40;
else
$('.ubw-container').height(winheight-40);
controlTextField(); controlTextField();
} }

Loading…
Cancel
Save