moai/moai-dev — Issue #186: Merging highlights doesn't seem to work.
Author: danadrew
Created: 2012-03-10 01:47:06+00:00
State: open
Labels: Bug

See sample in: samples / test / textbox-highlight2

**Expected:**
If two highlights overlap and are the same color, they should be merged in the internal data to be only one highlight for the entire span.

**Actual:**
They are saved as two separate highlights. Use break points in the sample to verify.

**Reproduction Steps:**
1. Create a text box and then add two or more highlights that touch or overlap and are all the same color.
2. Set a break point in the AddHighlight function so you can inspect the internal data.
3. Notice that all the back-to-back spans will be saved separately even though they all contain the same color.