Skip to content

Commit 3d111fb

Browse files
Margin fields doesn't save values #105
1 parent f9f79a8 commit 3d111fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/Visualizer/Render/Sidebar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ protected function _renderViewSettings() {
332332
echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
333333
echo '<tr>';
334334
echo '<td class="section-table-column">';
335-
echo '<input type="text" name="chartArea[left]" class="control-text" value="', !empty( $this->chartArea['left'] ) ? esc_attr( $this->chartArea['left'] ) : '', '" placeholder="20%">';
335+
echo '<input type="text" name="chartArea[left]" class="control-text" value="', $this->chartArea['left'] || $this->chartArea['left'] === "0" ? esc_attr( $this->chartArea['left'] ) : '', '" placeholder="20%">';
336336
echo '</td>';
337337
echo '<td class="section-table-column">';
338-
echo '<input type="text" name="chartArea[top]" class="control-text" value="', !empty( $this->chartArea['top'] ) ? esc_attr( $this->chartArea['top'] ) : '', '" placeholder="20%">';
338+
echo '<input type="text" name="chartArea[top]" class="control-text" value="', $this->chartArea['top'] || $this->chartArea['top'] === "0" ? esc_attr( $this->chartArea['top'] ) : '', '" placeholder="20%">';
339339
echo '</td>';
340340
echo '</tr>';
341341
echo '</table>';

0 commit comments

Comments
 (0)