Ferdbold has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312794

Change subject: Display graphs as inline-blocks at first creation Fix popup 
widget displaying as anchored after resizing a graph
......................................................................

Display graphs as inline-blocks at first creation
Fix popup widget displaying as anchored after resizing a graph

Bug: T122347
Change-Id: Idf4d69789ce76decce212ae372ff906c1d4960c1
---
M modules/ve-graph/ve.ce.MWGraphNode.css
M modules/ve-graph/ve.ce.MWGraphNode.js
2 files changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Graph 
refs/changes/94/312794/1

diff --git a/modules/ve-graph/ve.ce.MWGraphNode.css 
b/modules/ve-graph/ve.ce.MWGraphNode.css
index 82e9203..8b83f4f 100644
--- a/modules/ve-graph/ve.ce.MWGraphNode.css
+++ b/modules/ve-graph/ve.ce.MWGraphNode.css
@@ -1,4 +1,6 @@
 .mw-graph {
+       display: inline-block;
+       border: 1px solid transparent;
        position: relative;
 }
 
diff --git a/modules/ve-graph/ve.ce.MWGraphNode.js 
b/modules/ve-graph/ve.ce.MWGraphNode.js
index d22d8d1..9473d29 100644
--- a/modules/ve-graph/ve.ce.MWGraphNode.js
+++ b/modules/ve-graph/ve.ce.MWGraphNode.js
@@ -131,6 +131,8 @@
                                // of automatic padding, but it isn't properly 
exposed in the view
                                node.$graph.append( node.$plot );
                                node.$plot.css( view._padding ); // jscs:ignore 
disallowDanglingUnderscores
+
+                               node.calculateHighlights();
                        },
                        function ( failMessageKey ) {
                                node.$graph.text( ve.msg( failMessageKey ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/312794
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf4d69789ce76decce212ae372ff906c1d4960c1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Graph
Gerrit-Branch: master
Gerrit-Owner: Ferdbold <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to