Skip to content

Commit 46672f9

Browse files
Fix e2e testcase Codeinwp/visualizer-pro#314
1 parent b182e66 commit 46672f9

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

classes/Visualizer/Render/Library.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ private function _renderChartBox( $placeholder_id, $chart_id ) {
356356
private function _renderTwoColSidebar() {
357357
if ( ! Visualizer_Module::is_pro() ) {
358358
echo '<div class="items two-col">';
359-
echo '<div class="visualizer-chart viz-pro">';
359+
echo '<div class="viz-pro">';
360360
echo '<div id="visualizer-sidebar" class="viz-pro two-columns">';
361361
echo '<div class="visualizer-sidebar-box">';
362362
echo '<h3>' . __( 'Discover the power of PRO!', 'visualizer' ) . '</h3><ul>';

css/library.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
.visualizer-chart.viz-pro {
254254
padding: 0;
255255
}
256-
.visualizer-chart.viz-pro .two-columns{
256+
.two-col .viz-pro .two-columns{
257257
padding: 0;
258258
border: 1px solid #DDDDDD;
259259
border: 5px solid #007CBA;

js/library.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,14 @@
4343

4444
width *= 0.305;
4545
$(this).prev( '.visualizer-chart-title' ).width(width - 14);
46-
var sideBarHeight = width * 0.82;
4746
var ChartHeight = width * 0.93;
4847
if ( $( '.visualizer-nochart-canvas' ).length === 0 ) {
49-
sideBarHeight = width * 0.82;
50-
ChartHeight = width * 0.75;
48+
ChartHeight = width * 0.78;
5149
if ( $( '#visualizer-sidebar' ).hasClass('one-columns') ) {
52-
sideBarHeight = width * 0.98;
53-
ChartHeight = width * 0.89;
50+
ChartHeight = width * 0.92;
5451
}
5552
}
5653
$(this).width(width).height( ChartHeight );
57-
$('#visualizer-sidebar').find('.visualizer-sidebar-box').height( sideBarHeight );
5854
});
5955
};
6056

0 commit comments

Comments
 (0)