Hi, I'm using Smartclient v12.1p_2024-10-31/Pro. I have a problem that the RichTextEditor displays incomplete text when the large text, that is, the characters themselves are there, but visually it does not reach the end and the scroll itself as an example is also visible, which is not completely visible.
This is my code :
isc.RichTextWindow.addProperties({
keepInParentRect: true,
dismissOnEscape: false,
showMinimizeButton: false,
showMaximizeButton: false,
canDragResize: true,
autoCenter: true,
width: 700,
height: 400,
readOnlyMode: false,
initWidget: function () {
this.Super("initWidget", arguments);
let richTextEditor = isc.RichTextEditor.create({
editAreaProperties: { styleName: "rteStyle", },
autoDraw: false, ID: "propertyValueEditor",
height: "100%",
overflow: "hidden",
canDragResize: true,
controlGroups: ["styleControls","bulletControls"],
value: this.fieldValue, });
if (this.controls && this.buttonProperties) {
richTextEditor.myButtonProperties = this.buttonProperties;
richTextEditor.myControls = this.controls;
richTextEditor.myButtonConstructor = isc.DynamicForm;
richTextEditor.controlGroups = [ "styleControls", "bulletControls", "myControls" ]; }
let layout = isc.VLayout.create({
layoutMargin: 10,
membersMargin: 10,
overflow: "hidden",
members: [richTextEditor],
});
this.addItem(layout);
},
.richTextEditorBorder {
border: 1px solid #d0d0d0;
max-height: 345px !important;
}
.rteStyle {
font-family: Tahoma, sans-serif;
font-size: 13px;
height: 310px !important;
padding-bottom: 0 !important;
padding-top: 10px !important;
}
This is my code :
isc.RichTextWindow.addProperties({
keepInParentRect: true,
dismissOnEscape: false,
showMinimizeButton: false,
showMaximizeButton: false,
canDragResize: true,
autoCenter: true,
width: 700,
height: 400,
readOnlyMode: false,
initWidget: function () {
this.Super("initWidget", arguments);
let richTextEditor = isc.RichTextEditor.create({
editAreaProperties: { styleName: "rteStyle", },
autoDraw: false, ID: "propertyValueEditor",
height: "100%",
overflow: "hidden",
canDragResize: true,
controlGroups: ["styleControls","bulletControls"],
value: this.fieldValue, });
if (this.controls && this.buttonProperties) {
richTextEditor.myButtonProperties = this.buttonProperties;
richTextEditor.myControls = this.controls;
richTextEditor.myButtonConstructor = isc.DynamicForm;
richTextEditor.controlGroups = [ "styleControls", "bulletControls", "myControls" ]; }
let layout = isc.VLayout.create({
layoutMargin: 10,
membersMargin: 10,
overflow: "hidden",
members: [richTextEditor],
});
this.addItem(layout);
},
.richTextEditorBorder {
border: 1px solid #d0d0d0;
max-height: 345px !important;
}
.rteStyle {
font-family: Tahoma, sans-serif;
font-size: 13px;
height: 310px !important;
padding-bottom: 0 !important;
padding-top: 10px !important;
}