Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
i20rzslider
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jedife
i20rzslider
Commits
ec8b49ab
Commit
ec8b49ab
authored
Feb 06, 2014
by
kvindasAB
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements over re-render mechanisms.
Fixes issues presented on hidden tab rendering.
parent
07ec8169
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
rzslider.js
rzslider.js
+14
-2
No files found.
rzslider.js
View file @
ec8b49ab
...
@@ -215,10 +215,10 @@ function throttle(func, wait, options) {
...
@@ -215,10 +215,10 @@ function throttle(func, wait, options) {
});
});
// Recalculate slider view dimensions
// Recalculate slider view dimensions
this
.
scope
.
$on
(
'reCalcViewDimensions'
,
angular
.
bind
(
this
,
this
.
calcViewDimensions
));
this
.
scope
.
$on
(
'reCalcViewDimensions'
,
angular
.
bind
(
this
,
this
.
resetSlider
));
// Recalculate stuff if view port dimensions have changed
// Recalculate stuff if view port dimensions have changed
angular
.
element
(
window
).
on
(
'resize'
,
angular
.
bind
(
this
,
this
.
calcViewDimensions
));
angular
.
element
(
window
).
on
(
'resize'
,
angular
.
bind
(
this
,
this
.
resetSlider
));
this
.
initRun
=
true
;
this
.
initRun
=
true
;
...
@@ -268,6 +268,13 @@ function throttle(func, wait, options) {
...
@@ -268,6 +268,13 @@ function throttle(func, wait, options) {
self
.
resetSlider
();
self
.
resetSlider
();
});
});
this
.
scope
.
$watch
(
'rzSliderForceRender'
,
function
(
newValue
,
oldValue
){
self
.
resetLabelsWidth
();
thrLow
();
thrHigh
();
self
.
resetSlider
();
});
},
},
resetSlider
:
function
()
{
resetSlider
:
function
()
{
...
@@ -277,6 +284,11 @@ function throttle(func, wait, options) {
...
@@ -277,6 +284,11 @@ function throttle(func, wait, options) {
this
.
updateFloorLab
();
this
.
updateFloorLab
();
},
},
resetLabelsWidth
:
function
()
{
this
.
minLab
.
rzsv
=
undefined
;
this
.
maxLab
.
rzsv
=
undefined
;
},
/**
/**
* Initialize slider handles positions and labels
* Initialize slider handles positions and labels
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment