Skip to content

Commit

Permalink
Refactor text widget: Simplify and remove duplicate cursor state, and…
Browse files Browse the repository at this point in the history
… fix issues related to the cursor being off-by-n with word wrapping enabled. See #313.
  • Loading branch information
mikke89 committed May 20, 2022
1 parent 85acb6c commit d5997e9
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 186 deletions.
13 changes: 10 additions & 3 deletions Samples/basic/demo/data/demo.rml
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,14 @@ progress {
</div>
<h2>Message</h2>
<div>
<textarea cols="25" rows="4" wrap="nowrap" name="message">😍 Hello 🌐 World! 😎</textarea>
<textarea cols="25" rows="4" name="message" id="message">abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz

😍 Hello 🌐 World! 😎

abcdefghijklmnopqrstuvwxyz</textarea>
</div>
<div>
<p id="debug-msg" style="white-space: pre; font-family: rmlui-debugger-font; min-height: 800dp;"></p>
</div>
<div style="margin-bottom: 15dp;">
<input type="submit">Submit</input>
Expand All @@ -879,9 +886,9 @@ progress {
<col/>
<col/>
<tr id="row_source">
<td><textarea id="sandbox_rml_source" wrap="nowrap" onchange="set_sandbox_body"></textarea></td>
<td><textarea id="sandbox_rml_source" onchange="set_sandbox_body"></textarea></td>
<td id="vertical_slider"><handle class="slider"size_target="col_rml_source"/></td>
<td><textarea id="sandbox_rcss_source" wrap="nowrap" onchange="set_sandbox_style"></textarea></td>
<td><textarea id="sandbox_rcss_source" onchange="set_sandbox_style"></textarea></td>
</tr>
<tr>
<td colspan=3 id="horizontal_slider"><handle class="slider" size_target="row_source"/></td>
Expand Down
Loading

0 comments on commit d5997e9

Please sign in to comment.