Skip to content

Commit 354ccac

Browse files
author
minjk-bl
committed
Frame Editor - popup rename, replace scrollbar fixed
1 parent 5c75d2c commit 354ccac

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

css/common/frameEditor.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
padding: 10px;
376376
}
377377
.vp-popup-addpage .vp-popup-tab.replace {
378-
height: calc(100% - 50px);
378+
height: calc(100% - 60px);
379379
}
380380
.vp-popup-addtype {
381381
width: 153px;
@@ -384,6 +384,12 @@
384384
.vp-popup-delete {
385385
padding-bottom: 20px;
386386
}
387+
.vp-popup-rename-page {
388+
max-height: 400px;
389+
}
390+
.vp-popup-replace-table {
391+
max-height: 350px;
392+
}
387393
.vp-popup-replace-add {
388394
margin-top: 30px
389395
}

src/common/vpFrameEditor.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ define([
638638

639639
FrameEditor.prototype.renderRenamePage = function() {
640640
var content = new sb.StringBuilder();
641+
content.appendFormatLine('<div class="{0} {1}">', 'vp-popup-rename-page', 'vp-scrollbar');
641642
content.appendLine('<table>');
642643
content.appendLine('<colgroup><col width="100px"><col width="*"></colgroup>');
643644
this.state.selected.forEach((col, idx) => {
@@ -648,17 +649,20 @@ define([
648649
content.appendLine('</tr>');
649650
});
650651
content.appendLine('</table>');
652+
content.appendLine('</div>');
651653
return content.toString();
652654
}
653655

654656
FrameEditor.prototype.renderReplacePage = function() {
655657
var content = new sb.StringBuilder();
656658
content.appendFormatLine('<label><input type="checkbox" class="{0}"/><span>{1}</span></label>', 'vp-popup-use-regex', 'Use Regular Expression');
657659
content.appendLine('<br/><br/>');
658-
content.appendFormatLine('<table class="{0}">', 'vp-popup-replace-table');
660+
content.appendFormatLine('<div class="{0}">', 'vp-popup-replace-table');
661+
content.appendLine('<table>');
659662
content.appendLine(this.renderReplaceInput(0));
660663
content.appendFormatLine('<tr><td colspan="3"><button class="{0} {1}">{2}</button></td></tr>', 'vp-button', 'vp-popup-replace-add', '+ Add Key');
661664
content.appendLine('</table>');
665+
content.appendLine('</div>');
662666
return content.toString();
663667
}
664668

0 commit comments

Comments
 (0)