mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
get max preview width from monitor it is on rather than primary #558
This commit is contained in:
@@ -68,7 +68,7 @@ var thumbnailPreviewMenu = new Lang.Class({
|
||||
this._app = this._source.app;
|
||||
|
||||
this.actor.add_style_class_name('app-well-menu');
|
||||
this.actor.set_style("max-width: " + (Main.layoutManager.primaryMonitor.width - 22) + "px;");
|
||||
this.actor.set_style("max-width: " + (this._source.panelWrapper.monitor.width - 22) + "px;");
|
||||
this.actor.hide();
|
||||
|
||||
// Chain our visibility and lifecycle to that of the source
|
||||
|
||||
Reference in New Issue
Block a user