lib/glimmer/swt/shell_proxy.rb in glimmer-dsl-opal-0.9.3 vs lib/glimmer/swt/shell_proxy.rb in glimmer-dsl-opal-0.10.0

- old
+ new

@@ -22,10 +22,21 @@ } .shell iframe { width: 100%; height: 100%; } + .shell .dialog-overlay { + position: fixed; + z-index: 10; + padding-top: 100px; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: auto; + background-color: rgba(0,0,0,0.4); + } CSS # TODO consider renaming to ShellProxy to match SWT API attr_reader :minimum_size attr_accessor :menu_bar @@ -96,10 +107,11 @@ style(class: "#{style_class.name.split(':').last.underscore.gsub('_', '-').sub(/-proxy$/, '')}-style") { style_class::STYLE } end end - '' + div(class: 'dialog-overlay hide') { + } } }.to_s end def open