- switch css update
- onzoom panel height fix now uses cached list of panels
This commit is contained in:
parent
5158552e7b
commit
9a42073c7f
3 changed files with 51 additions and 46 deletions
|
|
@ -64,6 +64,7 @@ init = function(callback) {
|
|||
// horizontal scrolling & zoom with mousewheel
|
||||
// if shift is pressed (native), or if there is no vertical scrollbar,
|
||||
// or if mouse is on h-scrollbar
|
||||
var contentPanels = $('.content')
|
||||
$('.tab').on('mousewheel',function(e) {
|
||||
// console.log(e)
|
||||
if (e.ctrlKey) {
|
||||
|
|
@ -71,7 +72,7 @@ init = function(callback) {
|
|||
var d = -e.originalEvent.deltaY/Math.abs(e.originalEvent.deltaY)/10,
|
||||
s = d+parseFloat($('html').css('font-size'))
|
||||
$('html').css('font-size',s)
|
||||
$('.tab.on .content').css('top',60+'rem')
|
||||
contentPanels.css('top',60+'rem')
|
||||
|
||||
} else {
|
||||
var scrollbar = 10
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ createWidget.switch = function(widgetData) {
|
|||
');
|
||||
|
||||
for (v in widgetData.values) {
|
||||
widget.append('<div class="value" data-value="'+widgetData.values[v]+'"><span>'+widgetData.values[v]+'</span></div>')
|
||||
widget.append('<div class="value" data-value="'+widgetData.values[v]+'">'+widgetData.values[v]+'</div>')
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue