public override void Initialize() { base.Initialize(); var tv = new MacTextView(EventSink, ApplicationContext); ViewObject = tv; tv.VerticallyResizable = false; tv.HorizontallyResizable = false; }
public override void Initialize() { base.Initialize(); var tv = new MacTextView(EventSink, ApplicationContext); ViewObject = tv; tv.VerticallyResizable = false; tv.HorizontallyResizable = false; // Use cached font since Widget.Font size increases for each LoadText... It has to do // with the 'style' attribute for the 'body' element - not sure why that happens font = tv.Font; }