MDL-44770 editor-atto: table context menu opens from button

Context menu now opens from button, rather than table cell. Modified wording of table strings.
This commit is contained in:
Jetha Chan 2014-03-28 17:00:36 +08:00
parent ad32dda90c
commit f8c3af1321
5 changed files with 6 additions and 6 deletions

View file

@ -33,8 +33,8 @@ $string['columns'] = 'Columns';
$string['rows'] = 'Rows';
$string['both'] = 'Both';
$string['edittable'] = 'Edit table';
$string['addrowafter'] = 'Add row after';
$string['addcolumnafter'] = 'Add column after';
$string['addrowafter'] = 'Insert row after current cell';
$string['addcolumnafter'] = 'Insert column after current cell';
$string['moverowup'] = 'Move row up';
$string['moverowdown'] = 'Move row down';
$string['movecolumnleft'] = 'Move column left';

View file

@ -297,7 +297,7 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
// Show the context menu, and align to the current position.
this._contextMenu.show();
this._contextMenu.align(e.tableCell, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
this._contextMenu.align(this.buttons.table, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
// If there are any anchors in the bounding box, focus on the first.
if (boundingBox.one('a')) {

File diff suppressed because one or more lines are too long

View file

@ -297,7 +297,7 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
// Show the context menu, and align to the current position.
this._contextMenu.show();
this._contextMenu.align(e.tableCell, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
this._contextMenu.align(this.buttons.table, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
// If there are any anchors in the bounding box, focus on the first.
if (boundingBox.one('a')) {

View file

@ -295,7 +295,7 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
// Show the context menu, and align to the current position.
this._contextMenu.show();
this._contextMenu.align(e.tableCell, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
this._contextMenu.align(this.buttons.table, [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.BL]);
// If there are any anchors in the bounding box, focus on the first.
if (boundingBox.one('a')) {