Replies: 1 comment 2 replies
-
Hei @pellmann I converted the issue to an discussion because I think this is not an issue neither an feature request and I have to explain a bit. First of all I want to say sorry for replying so late. Was pretty busy with other projects. But lets get back to topic... In the earlier / first version of the Ace Editor https://github.com/sergio70/aceeditorv14 (which I actively maintained), the frontend webcomponent framework, which was used, is called Polymer 3. Polymer 3 and Ace itself came with a lot of bugs. For example the scrollbar was flickering in a super wierd way which I was not able to stop and some properties did not fire the updated event. With Polymer 3 going end of life and Lit (the newer Framework) being added to Vaadin, I decided to rewrite the whole component (better said all of my Add-ons) to use Lit with its Lifecycle and so on. Because of the new possibilitys Lit gave me, I decided to remove the min and max lines options completely. The Editor is so responsive that it can completely calculate lines by the height. Even when you change it in runtime, everything works now as expected. Many issues that the old version had, completely disappeared, when I switched to Lit without having to have change the rewritten code. Lastly I don't think that the position could be changed from absolute to static, because of the statusbar which is located in the bottom right corner. I would kindly ask you, to try to play around with the setHeight/setWidth/setMinHeight/setMinWidth Method Ace provides itself (on Java Side). Maybe it will fit your needs. As always I would be happy to assist you, If help needed / wanted. Have a great week, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What I would like to achieve is that the editor is started with a line size of e.g. 6. But if the user then enters more text, the editor should grow vertically up to a maximum number of lines. Ace basically supports this with the options minLines and maxLines. (it the same function the editor has on the landing page of https://ace.c9.io/)
It would be nice to be able to use these Ace functions directly. I think additionally the editor div would have to change from position:absolute to position:static for this case?
Beta Was this translation helpful? Give feedback.
All reactions