mirror of https://github.com/buggins/dlangui.git
Even better, scrolling
This commit is contained in:
parent
64dab5989e
commit
ad6d547812
|
@ -3468,6 +3468,12 @@ class EditBox : EditWidgetBase {
|
||||||
if (_contentChanged)
|
if (_contentChanged)
|
||||||
needRewrap = true;
|
needRewrap = true;
|
||||||
|
|
||||||
|
if (lastStartingLine != _firstVisibleLine)
|
||||||
|
{
|
||||||
|
needRewrap = true;
|
||||||
|
lastStartingLine = _firstVisibleLine;
|
||||||
|
}
|
||||||
|
|
||||||
if (rc.width <= 0 && _wordWrap)
|
if (rc.width <= 0 && _wordWrap)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -3520,7 +3526,7 @@ class EditBox : EditWidgetBase {
|
||||||
CustomCharProps[] wrapProps;
|
CustomCharProps[] wrapProps;
|
||||||
foreach (int q, curWrap; wrappedLine)
|
foreach (int q, curWrap; wrappedLine)
|
||||||
{
|
{
|
||||||
auto lineOffset = q + i + wrapsUpTo(i);
|
auto lineOffset = q + i + wrapsUpTo(i + _firstVisibleLine);
|
||||||
if (highlight)
|
if (highlight)
|
||||||
{
|
{
|
||||||
wrapProps = highlight[accumulativeLength .. $];
|
wrapProps = highlight[accumulativeLength .. $];
|
||||||
|
|
Loading…
Reference in New Issue