Skip to content

Commit 5bd59af

Browse files
Merge pull request #453 from contactashish13/test-3.3.0
chart positioning should not affect charts in the backend
2 parents 7d29b90 + 0bcd95b commit 5bd59af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ public function renderLibraryPage() {
690690
$settings = apply_filters( $atts['settings'], $settings, $chart->ID, $type );
691691
}
692692

693-
unset( $settings['height'], $settings['width'] );
693+
unset( $settings['height'], $settings['width'], $settings['chartArea'] );
694694
$series = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_SERIES, get_post_meta( $chart->ID, Visualizer_Plugin::CF_SERIES, true ), $chart->ID, $type );
695695
$data = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_DATA, unserialize( html_entity_decode( $chart->post_content ) ), $chart->ID, $type );
696696

classes/Visualizer/Module/Chart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ private function _handleDataAndSettingsPage() {
627627
$sidebar->__data = $data['data'];
628628
}
629629
}
630-
unset( $data['settings']['width'], $data['settings']['height'] );
630+
unset( $data['settings']['width'], $data['settings']['height'], $data['settings']['chartArea'] );
631631
wp_enqueue_style( 'wp-color-picker' );
632632
wp_enqueue_style( 'visualizer-frame' );
633633
wp_enqueue_script( 'visualizer-preview' );
@@ -1090,7 +1090,7 @@ private function _handleDataPage() {
10901090
$render = new Visualizer_Render_Page_Data();
10911091
$render->chart = $this->_chart;
10921092
$render->type = $data['type'];
1093-
unset( $data['settings']['width'], $data['settings']['height'] );
1093+
unset( $data['settings']['width'], $data['settings']['height'], $data['settings']['chartArea'] );
10941094
wp_enqueue_style( 'visualizer-frame' );
10951095
wp_enqueue_script( 'visualizer-render' );
10961096
wp_localize_script(

0 commit comments

Comments
 (0)