Iframe Modal Box Centering via Position Offset Calculation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In the context of business system page inheritance, subsystem pages embedded through iframe labels are isolated from parent system pages, leading to modal boxes being centered relative to the subsystem page rather than the parent page, prompting a shift to integrated page development at increased costs.

Innovation Solution

A method and apparatus for content presenting that determines display parameters and position offsets to center a content box within a parent page when embedded through an iframe label, involving modules for determining display parameters, calculating position offsets, and presenting the content box in a centered manner on the parent page.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If iframe labels are used to embed subsystem pages into parent system pages, then page development cost is reduced and development efficiency is improved, but the modal box cannot be centered relative to the parent system page

Engineering Contradiction:
Improvepage development efficiencyVSAvoidmodal box positioning accuracy
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The patent introduces a position offset calculation mechanism as an intermediary between the iframe embedding structure and the modal box positioning. By calculating the offset between the parent page center and the iframe page center, and applying this offset to the modal box positioning, the solution enables accurate centering relative to the parent page while maintaining the iframe structure. This intermediary calculation layer resolves the contradiction by bridging the isolation between iframe and parent page coordinate systems.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent changes the positioning parameters by introducing position offset values (left offset and top offset) that adjust the modal box position from the default iframe-centered location to the parent page-centered location. By modifying these positioning parameters based on the calculated offset, the solution achieves accurate modal box centering relative to the parent system page while preserving the iframe embedding structure for cost-effective development.

Inventive Principle:
Principle #35Parameter changes

2Adaptability or versatility

If iframe labels are used to embed subsystem pages, then component and style isolation is achieved, but the modal box positioning becomes isolated from the parent system page

Engineering Contradiction:
Improvecomponent isolationVSAvoidmodal box centering precision
Core Design Contradiction:
Adaptability or versatilityVSManufacturing precision

Solution Approach 1:

The position offset calculation serves as an intermediary mechanism that connects the isolated iframe coordinate system with the parent page coordinate system. By calculating the offset between these two coordinate systems and applying it to modal box positioning, the solution maintains component isolation benefits of iframe while achieving precise modal box centering relative to the parent page.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Manufacturing precision

If integrated page development is used instead of iframe embedding, then modal box can be centered relative to parent system page, but page development cost increases

Engineering Contradiction:
Improvemodal box centering precisionVSAvoidpage development efficiency
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The patent copies the positioning logic from integrated page development to iframe-based development by calculating and applying position offsets. Instead of requiring full integrated development, the solution copies the essential centering functionality through offset calculation, allowing modal boxes to be centered relative to the parent page while maintaining the cost-efficient iframe structure.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS20250094683A1Method, apparatus, storage medium, and electronic device for content presenting
Publication Date: 2025.03.20 BEIJING YOUZHUJU NETWORK TECH CO LTD
  • US20250094683A1 patent drawing
  • US20250094683A1 patent drawing
  • US20250094683A1 patent drawing

AI summary

The disclosure relates to a method, apparatus, storage medium, and electronic device for content presenting. The method includes: in response to a triggering operation for a content box within a first page, determining a first display parameter of the content box within the first page, a position parameter of the first page within a second page, and a second display parameter of the second page. Herein, the first page is embedded into the second page through an iframe label for presenting; determining a position offset of the content box relative to the second page based on the first display parameter, the second display parameter, and the position parameter, the position offset being for controlling the content box to be presented within the second page in a centered manner; and presenting, based on the position offset, the content box within the second page in a centered manner.