RichClient: better handling for small screens/windows

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5681 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent 92375cfaa3
commit 9b6fac4a82

@ -5,13 +5,12 @@ body {
/* Main */
div.main {
float:left;
margin-top:1.5em;
width:75%;
height:100%;
margin-top:25px;
min-width: 470px;
}
/* Sidebar */
div.sidebar {
margin-right: 1em;
margin-right: 10px;
float:left;
width:250px;
}

@ -61,6 +61,14 @@
bmk_tab = 2;
tabid = "#Welcome";
$(window).resize(function(){
var width = document.documentElement.clientWidth;
if (width > 800) width = width - 290;
else width = width - 20;
$("#tabs-container").width(width);
});
$(window).trigger("resize");
$.ajaxSetup({
timeout: 10000,
cache: false

Loading…
Cancel
Save