Skip to content

Commit f10ccc2

Browse files
author
minjk-bl
committed
Fix some operations on Frame app
1 parent b261b7d commit f10ccc2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

css/m_apps/frame.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@
247247
}
248248

249249
/* UDF Editor - CodeMirror */
250+
.vp-fr-subset-box {
251+
width: 300px;
252+
}
250253
.vp-fr-subset-box .CodeMirror {
251254
display: inline-block;
252255
width: calc(100% - 55px);

js/m_apps/Frame.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,10 @@ define([
808808
type: 'readonly'
809809
});
810810
// set subset
811+
let contentState = that.getPopupContent(type);
811812
this.subsetEditor = new Subset({
812813
pandasObject: this.state.tempObj,
814+
selectedColumns: [ com_util.convertToStr(contentState.name, contentState.nameastext) ],
813815
config: { name: 'Subset' } },
814816
{
815817
useInputVariable: true,
@@ -861,6 +863,7 @@ define([
861863
// set subset
862864
this.subsetEditor = new Subset({
863865
pandasObject: this.state.tempObj,
866+
selectedColumns: that.state.selected.map(col=>col.code),
864867
config: { name: 'Subset' } },
865868
{
866869
useInputVariable: true,

0 commit comments

Comments
 (0)