Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarkascha <github@christian-reiner.info>2013-06-13 16:55:54 +0400
committerarkascha <github@christian-reiner.info>2013-06-13 16:55:54 +0400
commit755eebf39790fa3c95e110336d102388f5d45de4 (patch)
treee06c0fab9c30e6ebf2b0dd7ad3448c499c80d33d /fluxx_compensator
parent87e68b0ce9ffbdb8c68ea19b4a5227ad780958d5 (diff)
fluxx-compensator: Fixed computation of minimal position for the horizontal navigation handle in certain less frequently used browsers.
Diffstat (limited to 'fluxx_compensator')
-rw-r--r--fluxx_compensator/js/fluxx.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/fluxx_compensator/js/fluxx.js b/fluxx_compensator/js/fluxx.js
index df1f330a7..bf89ef40e 100644
--- a/fluxx_compensator/js/fluxx.js
+++ b/fluxx_compensator/js/fluxx.js
@@ -245,13 +245,13 @@ OC.FluXX={
} // switch
// general orientation specific values
if (OC.FluXX.C_HORIZONTAL==handle.Orientation){
- handle.Position.Min=$(handle.Anchor).css('padding-top').replace(/[^-\d\.]/g, '')
+ handle.Position.Min=parseInt($(handle.Anchor).css('padding-top').replace(/[^-\d\.]/g, ''))
+handle.Offset-handle.Position.Margin;
handle.Position.Max=$(handle.Anchor).outerHeight()-$(handle.Anchor).position().top
-$(handle.Selector).outerHeight()-handle.Preset-handle.Position.Margin;
}
else{
- handle.Position.Min=$(handle.Anchor).css('padding-left').replace(/[^-\d\.]/g, '')
+ handle.Position.Min=parseInt($(handle.Anchor).css('padding-left').replace(/[^-\d\.]/g, ''))
+handle.Offset-handle.Position.Margin;
handle.Position.Max=$(handle.Anchor).outerWidth()-$(handle.Anchor).position().left
-$(handle.Selector).outerWidth()-handle.Preset-handle.Position.Margin;