FG1000 - Fix broken GUI display of panels.
This commit is contained in:
parent
3b92497769
commit
60e5e787b8
2 changed files with 3 additions and 2 deletions
|
@ -156,7 +156,7 @@ displayGUI : func(index, scale=1.0) {
|
|||
}
|
||||
|
||||
var mfd_canvas = me.displays[index].getCanvas();
|
||||
mfd_canvas.getCanvas().set("visible", visible);
|
||||
mfd_canvas.set("visible", 1);
|
||||
var gui = fg1000.GUI.new(me.displays[index], mfd_canvas, index, scale);
|
||||
},
|
||||
|
||||
|
|
|
@ -103,7 +103,8 @@ var GUI =
|
|||
device_id : device_id,
|
||||
};
|
||||
|
||||
obj.window = canvas.Window.new([obj.scale*obj.width,obj.scale*obj.height],"dialog").set('title',"FG1000 MFD" ~ device_id);
|
||||
obj.window = canvas.Window.new([obj.scale*obj.width,obj.scale*obj.height],"dialog");
|
||||
obj.window.set('title',"FG1000 Device " ~ device_id ~ " (" ~ int(scale * 100) ~ "%)");
|
||||
|
||||
obj.window.del = func() {
|
||||
# Over-ride the window.del function so we clean up when the user closes the window
|
||||
|
|
Loading…
Add table
Reference in a new issue