Bug SS-3550
1 vote

Open document loading, positions of elements are not restored properly

Created by hannes on 8/23/2018 9:30 AM Last Updated by hannes on 8/23/2018 9:50 AM
Logged: 0   (hrs)


 I edited a document and saved in format *.sm

After loading it again, all elements are in the upper left corner on top of each other. Obviously, this is not how it should be...

I'm using SMath Studio Mono (0.99 build 6671) in Ubuntu 16.04 LTS.

BTW: When I run SMath Studio from the console, I get a lot of these errors below. I'm not sure if this is related.

X11 Error encountered: 
  Error: BadMatch (invalid parameter attributes)
  Request:     12 (0)
  Resource ID: 0x7203B05
  Serial:      336963
  Hwnd:        Hwnd, Mapped:True ClientWindow:0x7203B06, WholeWindow:0x7203B05, Zombie=False, Parent:[<null>]
  Control:     System.Windows.Forms.Button, Text:   at System.Environment.get_StackTrace () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.HandleError (IntPtr display, System.Windows.Forms.XErrorEvent& error_event) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.X11Keyboard.XGetIMValues (IntPtr , System.String , System.IntPtr& , IntPtr ) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.X11Keyboard.GetSupportedInputStyles (IntPtr xim) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.X11Keyboard+<GetMatchingStylesInPreferredOrder>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.X11Keyboard.CreateXic (IntPtr window, IntPtr xim) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.X11Keyboard.CreateXicForWindow (IntPtr window) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.X11Keyboard.FocusIn (IntPtr window) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.SetFocus (IntPtr handle) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI.SetFocus (IntPtr handle) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ContainerControl.SendControlFocus (System.Windows.Forms.Control c) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.MdiClient.ActivateChild (System.Windows.Forms.Form form) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.MdiWindowManager.FormVisibleChangedHandler (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.OnVisibleChanged (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ScrollableControl.OnVisibleChanged (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.OnVisibleChanged (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.Show () [0x00000] in <filename unknown>:0 
  at .. (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0 
  at .. (System.String , Boolean ) [0x00000] in <filename unknown>:0 
  at .. (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0 
  at .. (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripButton.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.HandleClick (Int32 mouse_clicks, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, ToolStripItemEventType met) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in <filename unknown>:0 
  at .. (System.String[] ) [0x00000] in <filename unknown>:0 

    hannes (Thursday, August 23, 2018 9:50 AM) #

I forgot to mention: please see the attached image for a screenshot of the document after loading.