SimpleView.st
branchjv
changeset 7030 da2a16e8ec51
parent 6933 8c853e66a469
child 7036 530b3e1c64c3
--- a/SimpleView.st	Fri Oct 09 18:18:44 2015 +0200
+++ b/SimpleView.st	Fri Oct 09 18:44:13 2015 +0200
@@ -2307,6 +2307,17 @@
     "Modified: 26.5.1996 / 12:44:21 / cg"
 !
 
+heightOfContentsDependsOnWidth
+    "a very special which is only used by the scrollableView,
+     to check if it should NOT automatically hide scrollbars, when the
+     pointer leaves the view.
+     Currently, there are only a small number of views which return true here,
+     one being the HTML view, which rearranges its text depending on the width,
+     and therefore, it is a bad idea to hide/show scrollbars dynamically"
+     
+    ^ false  
+!
+
 widthOfContents
     "return the width of the contents in logical units
      - defaults to views visible area here.
@@ -2324,6 +2335,16 @@
     ^ (self innerWidth max:(self maxSubViewRight)) max:self maxComponentRight
 
     "Modified: 26.5.1996 / 13:02:50 / cg"
+!
+
+widthOfContentsDependsOnHeight
+    "a very special query which is only used by the scrollableView,
+     to check if it should NOT automatically hide scrollbars, when the
+     pointer leaves the view.
+     Currently, there is no view, which returns true
+     (maybe if we ever support chinese writing top to bottom..."
+     
+    ^ false  
 ! !
 
 !SimpleView methodsFor:'accessing-dimensions'!