git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jDoc typo
[fanfix.git]
/
src
/
be
/
nikiroo
/
jexer
/
TBrowsableWidget.java
diff --git
a/src/be/nikiroo/jexer/TBrowsableWidget.java
b/src/be/nikiroo/jexer/TBrowsableWidget.java
index 81ca63019dbcdaacb8d903966542dbb4b399c6cd..44fa7105e9bfc55a3eab68c13916e87d5d455a45 100644
(file)
--- a/
src/be/nikiroo/jexer/TBrowsableWidget.java
+++ b/
src/be/nikiroo/jexer/TBrowsableWidget.java
@@
-24,7
+24,7
@@
* DEALINGS IN THE SOFTWARE.
*
* @author David ROULET [niki@nikiroo.be]
* DEALINGS IN THE SOFTWARE.
*
* @author David ROULET [niki@nikiroo.be]
- * @version
1
+ * @version
2
*/
package be.nikiroo.jexer;
*/
package be.nikiroo.jexer;
@@
-403,14
+403,16
@@
abstract public class TBrowsableWidget extends TScrollableWidget {
hScroller.setY(y);
hScroller.setWidth(width);
hScroller.setY(y);
hScroller.setWidth(width);
+ // TODO why did we use to add 2?
+ // + 2 (for the border of the window)
+
// virtual_size
// virtual_size
- // - the other scroll bar size
- // - 2 (for the border of the window)
+ // + the other scroll bar size
vScroller.setTopValue(0);
vScroller.setBottomValue(Math.max(0, getVirtualHeight() - getHeight()
vScroller.setTopValue(0);
vScroller.setBottomValue(Math.max(0, getVirtualHeight() - getHeight()
-
- hScroller.getHeight() - 2
));
+
+ hScroller.getHeight()
));
hScroller.setLeftValue(0);
hScroller.setRightValue(Math.max(0, getVirtualWidth() - getWidth()
hScroller.setLeftValue(0);
hScroller.setRightValue(Math.max(0, getVirtualWidth() - getWidth()
-
- vScroller.getWidth() - 2
));
+
+ vScroller.getWidth()
));
}
}
}
}