Posted in: SPARK UI Toolkit Controls
NickMay 9, 2017 at 2:23 am #4308
one more topic on Text Editor control, it seems to work incorrect while READONLY is setup:
- In readonly mode the scroller is not working and if you have a lot content, you can’t review it in READONLY.
- In my opinion it makes sense to remove the editor controls menu at the top is not shown while READONLY, since you have no permission to edit
Please double check on it.
I appreciate your help,
NickSPARK SupportMay 30, 2017 at 2:19 pm #4353
The scroll functionality of a disabled Text Editor control should still work if you click on the scroll bar, or use the mouse wheel while hovering over the scroll bar.
Stephen P.Nick KostowskiMay 31, 2017 at 3:29 am #4358
That is the point I have tried to depict in this thread: the control with READONLY visibility option can’t be scrolled with the mouse.
Unfortenately I can’t depict it with the screenshot so here are the reproduction steps:
1. Please drop Text Editor to the CSHS Coach.
2. Set on Load on : me.setData(“Many many text here…. “); //text should be long enough to cause scroller.
3. Set visibility to READONLY of control.
4. Run the CSHS Coach and scroll over with the mouse over the control. As you can see the disabled cursor, you can’t use scroller. In addition the top menu of Text Editor is visible.
What do you think on hiding a editor tools in READ ONLY? Maybe a checkbox in config to manage it or a custom JS function in control API?
I hope this helps to pin-up the issue.
NickSPARK SupportJune 1, 2017 at 3:59 pm #4365
This works in HHS. It appears that CSHS is handling the iFrame div differently, causing the disabler to envelope the scroll bar. As a work around, you may want to try using a Stack control with Text Editor on the first pane. Then place a Read Only Text Area within a Vertical Layout on the second Stack pane bound to the same variable as the Text Editor. This will allow scroll while disabled and “remove” the controls when the pane is switched.
You must be logged in to reply to this topic.