options:xml:view-offset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
options:xml:view-offset [2017/04/20 00:43] – created adminoptions:xml:view-offset [2018/01/10 20:42] (current) – external edit 127.0.0.1
Line 12: Line 12:
 Values are defined in lines. Default for all offsets is 1 line. Values are defined in lines. Default for all offsets is 1 line.
 If you do not maintain some of offsets, default values will be used.  If you do not maintain some of offsets, default values will be used. 
 +
 +===== Defining proportional offset values =====
 +There is no direct way to define offset in proportional/percentage way, but there is a trick. If you give too big values for offsets that do not fit in current editor screen size (in summary), the editor will normalize values and adapt entered values according to current limits. So, if you enter knowingly too huge values, as for example, top offset 1000 and 500 for bottom offset, it will result in you cursor position always positioned on 2/3 part of the screen.
 +<code xml>
 +<Source_Editor>
 +   <TopYOffset>1000</TopYOffset>
 +   <BottomYOffset>500</BottomYOffset>
 +</Source_Editor>
 +</code>
 +The same works for horizontal cursor adjactment.
 +The feature, with proportional positioning, is available from HippoEDIT version 1.60.47.
  
 #xml_option #xml_option