+ if (mkws.width === undefined) {
+ // No state change, since we have no previous state
+ } else if (mkws.width <= targetWidth && width > targetWidth) {
+ log("narrow -> wide");
+ } else if (mkws.width > targetWidth && width <= targetWidth) {
+ log("wide -> narrow");
+ } else if (width > targetWidth) {
+ log("already wide");
+ } else {
+ log("already narrow");
+ }
+ mkws.width = width;
+