Troubleshooting
Why HMI tree view touch targets miss the active area
Short answer
A tree view misses touches because the expansion arrow's accepted input area, not its artwork, is too small for a finger. Measure the accepted area on the installed panel against the application's 1 cm × 1 cm minimum. Keep the standard tree only if documented styling enlarges both the symbol and the accepted area; otherwise replace it with explicit expand and select controls.

On this page
When a tree view misses presses on a touch panel, the control itself is almost never broken. Its expansion arrow's accepted input area is a few millimetres wide, and your application holds touch targets to 1 cm × 1 cm — a gap that styling can close only if it enlarges what the control accepts, not just what it draws. Measure the accepted area on the installed panel first. Keep the standard tree when documented styling pushes the accepted area to the application minimum along with the artwork; replace the tree with explicit expand and select controls when the styling changes appearance only.
Separate a small target from a fault elsewhere #
A mouse click that works where a finger fails is the signature of a small accepted area: the pointer lands on one pixel inside the widget's bounds and fires, while a finger near the edge lands outside those same bounds and is rejected. The same mouse-works-touch-does-not split appears in other widget types — the instrument panel slider that ignores touch but takes a mouse drag is in this family. Route the symptom before changing anything:
| What you observe | What it means | Decision |
|---|---|---|
| A mouse click expands the branch; a finger on the same spot often misses | The control works; the accepted area is too small for a finger | Measure the accepted area, then style or redesign |
| Touches select the row above or below | Rows are crowded or targets displaced | Fix row height and spacing before blaming the control |
| Neither mouse nor finger expands an expandable item | Target size is not the fault | Check the item's enabled state and expand binding |
| The branch expands but its values are stale or wrong | Navigation accepted the input; the data path did not | Trace the tag binding separately; enlarging the tree cannot repair it |
If touches respond in the wrong place across every control on the screen, run the panel's touch calibration before touching the tree. A tree that misses while neighbouring controls respond correctly has a different cause — the one behind the LOGO! 9 touch screen that misses presses while calibration is accurate.
The numbers to measure against #
Two numbers decide this fix. The first is yours: the application requires 1 cm × 1 cm of accepted input area per control, a self-imposed project limit rather than a published standard. The second is the nearest published reference, Google's Android accessibility documentation: it sets its own touch target at 48 × 48 dp, about 9 mm on a typical screen, and recommends 7 to 10 mm for touchscreen objects. Your square-centimetre requirement sits at the top of that band, so it is a normal target — and it is measured as accepted area, never as artwork.
Worked example, using example hardware numbers rather than any catalog rating: a panel with a 10.1-inch, 1280 × 800 display. A 16:10 screen with a 10.1-inch diagonal is 8.57 in wide — 10.1 × 16 ÷ √(16² + 10²) = 161.6 ÷ 18.87 = 8.57 in. At 1280 pixels across that is 149.4 pixels per inch, or 5.88 pixels per millimetre (149.4 ÷ 25.4). The square-centimetre target therefore needs 10 × 5.88 ≈ 59 pixels per side, and a typical 16-pixel expansion arrow is 16 ÷ 5.88 = 2.7 mm — about a quarter of the required edge, which is exactly why it misses. Doubling the artwork to 32 pixels reaches only 5.4 mm: appearance-only changes cannot get there.
Measure the accepted area, not the artwork #
- Open a representative tree on the installed panel at its running resolution and display scaling. A screenshot or an engineering workstation preview cannot establish physical size on the glass.
- Measure the visible symbol and row geometry on the glass with a ruler, or convert from pixel geometry as in the worked example above.
- Touch progressively inward from each edge of the expansion arrow and record where the branch actually expands: at the drawn edge, well inside it, or never.
- Record what edge touches do instead — select the row, select a neighbouring branch, or nothing — to separate spacing problems from hit-bounds problems.
- Repeat on a collapsed branch, an expanded branch, and the first and last row of a scrolled list, where control edges can clip the accepted area.
If the accepted area covers the application minimum in both dimensions, the tree passes and the misses come from alignment or calibration. If either dimension falls short, go to styling — and check the arrow's own accepted area specifically, because taller rows enlarge a row's selection band without necessarily enlarging the arrow's bounds.
What styling can change #
Use the stylesheet and item-layout properties that your toolkit documents for the tree view in the installed version, and do not copy syntax from a different widget framework. Investigate these property groups, each checked against the documentation you actually run:
- Expansion indicator geometry — whether the documented property grows the indicator's hit bounds or only the drawn glyph.
- Row height and item spacing — more separation between adjacent selectable rows.
- Indentation and label width — a clear parent-child structure that leaves room for long labels.
- Stylesheet scope — which trees the assignment reaches; apply the narrowest scope so one change stays diagnosable.
Change one property group at a time and re-measure after each. The decision rule is binary: if the documented properties move the arrow's accepted boundary out to the application minimum while the artwork grows with it, keep the standard tree. If a setting enlarges the glyph inside unchanged hit bounds, it is a cosmetic fix — the arrows still miss, and the tree needs the redesign below.
Replace the tree when styling cannot reach the minimum #
When no documented property grows the accepted area far enough, rebuild the navigation explicitly: one sized button per expandable branch for expand and collapse, plus a separate select action for the row. Keep expand and select distinct, because an operator must be able to open a branch without triggering whatever the selected item drives. Size every new button to the application minimum using the same pixel arithmetic as the worked example, and apply the discipline used when sizing HMI touch buttons in a dense button matrix — a rebuild that crowds its own buttons recreates this fault one level down.
Two trade-offs are layout costs, not communication faults: taller rows show fewer items per screen, and deeper indentation steals width from labels, so budget for scrolling and long labels in the new layout. If tree selections write to process tags, prove the rebuilt navigation against verified test tags on an isolated bench before pointing it at running equipment.
Keep the standard tree whenever it passes the measurement. It already provides hierarchy, scrolling and selection behavior; build the replacement only when the standard control cannot meet the measured minimum, because a larger symbol alone is not a completed fix.
Prove the fix on the installed panel #
- Save the current panel and styling configuration so the change can be reversed.
- Apply the documented styling, or build the replacement navigation.
- Run the panel on the installed touchscreen at its normal display settings.
- Measure every expansion control's accepted area and each new button against the application minimum.
- Exercise collapsed and expanded branches, adjacent rows, long labels, scrolling and the deepest hierarchy the real tree content contains.
- Confirm that a selection still drives the intended tag and that displayed values follow it.
- Reopen the panel after a restart or project download and repeat the measurements, so the configuration is proven persistent.
- Reject any result that passes with a mouse only, enlarges artwork only, or makes new controls overlap, and record the tested display settings alongside the panel file.
Questions asked
How do I convert the touch target to pixels on a different panel?
Divide the panel's horizontal resolution by its active display width in millimetres to get pixels per millimetre, then multiply by the target. A screen with 1280 pixels across a 217 mm active area gives 1280 ÷ 217 = 5.9 pixels per millimetre, so the target is about 59 pixels per side. Use the rated active area and resolution, and measure at the scaling the panel actually runs.
Is there a touch sensitivity setting that makes small targets easier to hit?
No. The input system reports where the finger landed, and the widget decides from its own bounds; there is no documented setting that widens those bounds. Larger glyphs or taller rows change them only where the toolkit's layout properties say they do. The bounds grow through documented geometry properties, or through replacing the control with sized navigation buttons.
What target size applies when a project has no written minimum?
Google's Android accessibility documentation is the nearest published reference: its own target is 48 by 48 dp, about 9 mm on a typical screen, and it recommends 7 to 10 mm for touchscreen objects generally. Without a written requirement of your own, hold tree controls to the top of that band, especially where operators wear gloves.
Why does the expansion arrow grow but still miss presses?
Because the graphic and the accepted area are separate properties. A larger glyph drawn inside unchanged hit bounds looks fixed but accepts nothing new. After any styling change, touch along the symbol's edges and confirm the branch expands from the new outer boundary; if the response boundary has not moved, the property changed appearance only.

