projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweak resizePage so that is does the appropriate actions on its very
[mkws-moved-to-github.git]
/
src
/
mkws-core.js
diff --git
a/src/mkws-core.js
b/src/mkws-core.js
index
1ff2f2e
..
32e09f8
100644
(file)
--- a/
src/mkws-core.js
+++ b/
src/mkws-core.js
@@
-336,11
+336,11
@@
mkws.pagerNext = function(tname) {
var width = $(window).width();
var from, to, method;
var width = $(window).width();
var from, to, method;
- if (mkws.width === undefined) {
- // No state change, since we have no previous state
- } else if (mkws.width > threshhold && width <= threshhold) {
+ if ((mkws.width === undefined || mkws.width > threshhold) &&
+ width <= threshhold) {
from = "wide"; to = "narrow"; method = "hide";
from = "wide"; to = "narrow"; method = "hide";
- } else if (mkws.width <= threshhold && width > threshhold) {
+ } else if ((mkws.width === undefined || mkws.width <= threshhold) &&
+ width > threshhold) {
from = "narrow"; to = "wide"; method = "show";
}
mkws.width = width;
from = "narrow"; to = "wide"; method = "show";
}
mkws.width = width;