Skip to content

Commit 51f7b46

Browse files
add subMenu to DefaultEditor
1 parent 440f88b commit 51f7b46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/DefaultEditor.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {Component} from 'react';
22
import PropTypes from 'prop-types';
33
import {
4-
CogMenu,
4+
SubPanel,
55
ColorPicker,
66
DataSelector,
77
Dropdown,
@@ -223,8 +223,8 @@ class DefaultEditor extends Component {
223223
/>
224224
</Section>
225225
<Section name={_('Positioning')}>
226-
<CogMenu>
227-
<Section>
226+
<SubPanel>
227+
<Section name={_('Anchor Point')}>
228228
<Info>
229229
{_(
230230
'The positioning inputs are relative to the ' +
@@ -240,15 +240,15 @@ class DefaultEditor extends Component {
240240
]}
241241
/>
242242
<Radio
243-
attr="legend.orientation"
243+
attr="legend.yanchor"
244244
options={[
245245
{label: _('Top'), value: 'top'},
246246
{label: _('Middle'), value: 'middle'},
247247
{label: _('Bottom'), value: 'bottom'},
248248
]}
249249
/>
250250
</Section>
251-
</CogMenu>
251+
</SubPanel>
252252
<Numeric
253253
label={_('X Position')}
254254
step={0.01}

0 commit comments

Comments
 (0)