Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 344: | Rivi 344: | ||
if (!!document.fullscreenElement) { | if (!!document.fullscreenElement) { | ||
− | memo.options.chartArea = { top: memo.margins.top*2, left: memo.margins.left*2, width: (w - memo.margins.left*2 - memo.margins.right - 24), height: (h - memo.margins.top*2 - memo.margins.bottom*2), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}; | + | //memo.options.chartArea = { top: memo.margins.top*2, left: memo.margins.left*2, width: (w - memo.margins.left*2 - memo.margins.right - 24), height: (h - memo.margins.top*2 - memo.margins.bottom*2), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}; |
+ | memo.options.chartArea = { top: t*2, left: l*2, width: (w - l*2 - r - 24), height: (h - t*2 - b*2), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}; | ||
} else { | } else { | ||
memo.options.chartArea = { top: memo.margins.top, left: memo.margins.left, width: (w - memo.margins.left - memo.margins.right), height: (h - memo.margins.top - memo.margins.bottom), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}; | memo.options.chartArea = { top: memo.margins.top, left: memo.margins.left, width: (w - memo.margins.left - memo.margins.right), height: (h - memo.margins.top - memo.margins.bottom), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}; | ||
Rivi 375: | Rivi 376: | ||
if (!!document.fullscreenElement) { | if (!!document.fullscreenElement) { | ||
memo.fullscreenEl.css( 'margin-top', ( t-35 ).toString() + 'px' ).css( 'margin-right', '7px' ); | memo.fullscreenEl.css( 'margin-top', ( t-35 ).toString() + 'px' ).css( 'margin-right', '7px' ); | ||
− | + | memo.downloadEl.css( 'margin-top', ( t-35 ).toString() + 'px' ).css( 'margin-right', '7px' ); | |
} else { | } else { | ||
memo.fullscreenEl.css( 'margin-top', '0px' ).css( 'margin-right', '0px' ); | memo.fullscreenEl.css( 'margin-top', '0px' ).css( 'margin-right', '0px' ); | ||
− | + | memo.downloadEl.css( 'margin-top', '0px' ).css( 'margin-right', '0px' ); | |
} | } | ||