Text Container Truncation for Adaptive UI Display

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing UI design software methods for displaying text on controls are inefficient, as they either fail to adapt to container width changes or display text outside the container, reducing user experience and designer efficiency.

Innovation Solution

A method for automatically truncating text exceeding a container's width by determining a target character for truncation, deleting characters behind it, and adding a preset symbol, ensuring text remains within the container while maintaining display quality.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If text is manually copied and pasted into a container, then text can be displayed on the control, but work efficiency of the designer is reduced

Engineering Contradiction:
Improvework efficiencyVSAvoidmanual handling
Core Design Contradiction:
ProductivityVSEase of operation

Solution Approach 1:

The system automatically detects when text exceeds container boundaries and performs truncation with ellipsis addition without requiring designer intervention. The text display component self-adjusts by monitoring its own state and applying corrections autonomously, eliminating manual copy-paste operations.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent replaces manual mechanical operations (copy-paste-delete) with an automated computational system that uses coordinate detection and string manipulation algorithms to achieve the same text fitting goal, significantly improving efficiency.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Adaptability or versatility

If text length exceeds container width, then all text can be entered, but text displays outside the container reducing user experience

Engineering Contradiction:
Improvetext display adaptationVSAvoidtext overflow
Core Design Contradiction:
Adaptability or versatilityVSObject-affected harmful factors

Solution Approach 1:

The system continuously monitors text position by detecting coordinates of the last character and compares it with container boundaries. This feedback loop enables real-time detection of overflow conditions and triggers automatic truncation when text exceeds container width.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent proactively prevents text overflow by detecting the potential overflow condition (last character coordinate exceeding container right boundary) and immediately applying truncation with ellipsis, stopping the harmful effect before it manifests as poor user experience.

Inventive Principle:
Principle #9Preliminary anti-action

3Manufacturing precision

If manual deletion of characters beyond container is performed, then text fits within container, but work efficiency is reduced

Engineering Contradiction:
Improvetext fitting precisionVSAvoiddesigner efficiency
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The patent replaces manual character deletion with an automated system that calculates the appropriate truncation point based on container coordinates and systematically removes excess characters while adding ellipsis, maintaining precision without manual intervention.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The system introduces an intermediary automated processing layer between text input and display that handles the complex coordination of truncation and ellipsis insertion, freeing the designer from direct manual manipulation while ensuring precise text fitting.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS12511469B2Text display method, device, apparatus and storage medium
Publication Date: 2025.12.30 BEIJING ZITIAO NETWORK TECH CO LTD
  • US12511469B2 patent drawing
  • US12511469B2 patent drawing
  • US12511469B2 patent drawing

AI summary

The present disclosure relates to a text display method, device, apparatus, and storage medium, and the method comprises: determining a length of entered text within a first container and a current width of the first container, if it is determined that the current width of the first container is less than the length of the entered text, determining a target truncated character from the entered text; then deleting characters behind the target truncated character in the entered text, and adding a preset symbol at a next position adjacent to the target truncated character to obtain a truncated text corresponding to the entered text; and displaying the truncated text in the first container.