Commit fc92d9cd932ebd4064943f4aa693c5b7a3cafa6b
1 parent
0a881284
poprawione przewijaki itp.
Showing
4 changed files
with
32 additions
and
2 deletions
media/css/general.css
1 | +body { | |
2 | + overflow: hidden; | |
3 | +} | |
4 | + | |
1 | 5 | /* główne menu */ |
2 | 6 | |
3 | 7 | ul#main_menu { |
... | ... | @@ -72,10 +76,24 @@ li { |
72 | 76 | } |
73 | 77 | |
74 | 78 | #right { |
75 | - overflow: auto; | |
76 | 79 | font-size: 12px; |
77 | 80 | } |
78 | 81 | |
82 | +#right .ui-tabs-panel { | |
83 | + overflow: auto; | |
84 | +} | |
85 | + | |
86 | +.tabs { | |
87 | + white-space: nowrap; | |
88 | + overflow: hidden; | |
89 | +} | |
90 | +.tabs .ui-tabs-nav li { | |
91 | + display: inline-block; | |
92 | + float: none; | |
93 | + vertical-align: bottom; | |
94 | + margin-right: -2px; | |
95 | +} | |
96 | + | |
79 | 97 | .ui-widget { |
80 | 98 | font-size: 12px; |
81 | 99 | } |
... | ... |
media/css/inflection_table.css
media/js/base-layout.js
... | ... | @@ -20,6 +20,16 @@ function adjust_grid_size() { |
20 | 20 | adjust_grid_width(); |
21 | 21 | } |
22 | 22 | |
23 | +function adjust_tabs() { | |
24 | + "use strict"; | |
25 | + var right = $('#right'); | |
26 | + var height = right.height() - right.find('.ui-tabs-nav').height() - 35; | |
27 | + right.find('.ui-tabs-panel').height(height); | |
28 | + right.width( | |
29 | + $('#content').width() - $('#left').width() - $('.vsplitbar').width()); | |
30 | +} | |
31 | +layout.adjust_tabs = adjust_tabs; | |
32 | + | |
23 | 33 | $(function() { |
24 | 34 | "use strict"; |
25 | 35 | var content = $('#content'), left = $('#left'); |
... | ... | @@ -36,6 +46,7 @@ $(function() { |
36 | 46 | e.stopPropagation(); |
37 | 47 | }); |
38 | 48 | $('#right').bind('resize', function(e) { |
49 | + adjust_tabs(); | |
39 | 50 | e.stopPropagation(); |
40 | 51 | }); |
41 | 52 | content.splitter({ |
... | ... |