WO2019223093A1 - 显示框处理方法、装置、计算机设备和存储介质 - Google Patents

显示框处理方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2019223093A1
WO2019223093A1 PCT/CN2018/096908 CN2018096908W WO2019223093A1 WO 2019223093 A1 WO2019223093 A1 WO 2019223093A1 CN 2018096908 W CN2018096908 W CN 2018096908W WO 2019223093 A1 WO2019223093 A1 WO 2019223093A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
displayed
display frame
boundary value
display window
Prior art date
Application number
PCT/CN2018/096908
Other languages
English (en)
French (fr)
Inventor
李智
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019223093A1 publication Critical patent/WO2019223093A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Definitions

  • the present application relates to a display frame processing method, device, computer equipment, and storage medium.
  • the inventors realized that when the display frame display is located at the edge of the small screen, it is easy to be truncated, which makes the display of the content of the display frame incomplete.
  • a display frame processing method, apparatus, computer device, and storage medium are provided.
  • a display frame processing method includes:
  • a program floating frame management device includes:
  • a receiving module configured to receive a display frame display instruction, where the display frame display instruction carries a position identifier of a display frame to be displayed;
  • a first boundary value acquisition module configured to acquire a display frame to be displayed corresponding to the position identifier, and acquire a first boundary value corresponding to the display frame to be displayed;
  • a second boundary value acquisition module configured to acquire a second boundary value of a display window corresponding to the display frame to be displayed
  • a position adjustment module when a difference between the first boundary value and the second boundary value is greater than a preset value, obtaining a preset display position corresponding to the display frame to be displayed;
  • a display module configured to display the display frame to be displayed according to the preset display position.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more processors are executed. The following steps:
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors execute the following steps:
  • FIG. 1 is a schematic flowchart of a display frame processing method according to one or more embodiments.
  • FIG. 2 is a schematic flowchart of a compatibility detection step according to one or more embodiments.
  • FIG. 3 is a block diagram of a display frame processing apparatus according to one or more embodiments.
  • FIG. 4 is a block diagram of a computer device according to one or more embodiments.
  • the present application provides a display frame processing method, which can be applied to, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. Please refer to FIG. 1.
  • the display frame processing method includes:
  • the display frame display instruction carries a position identifier of a display frame to be displayed.
  • the display box is the content that the terminal will display on the display window according to the display box display instruction; for example, in the chart of Echarts, a floating prompt box used to represent the chart information.
  • the display frame display instruction is an instruction received by the terminal for displaying the display frame; the terminal may receive the display frame display instruction through a built-in or external input device. For example, the terminal may recognize a movement, hover, or click command of the mouse.
  • the position identifier is the display position of the display frame on the display window in the screen; the position identifier may be the position where the mouse is moved or clicked.
  • the terminal receives a display frame display instruction through an input device, and the display frame display instruction carries a position identifier of the display frame to be displayed on a display window such as a screen, and the terminal may display the to-be-displayed display at a corresponding position according to the position identifier. Show box.
  • the first boundary value is an indicator of the positional relationship between the edge of the display frame to be displayed and the display window when the display frame to be displayed is displayed according to the display position corresponding to the position identifier; for example, the left and right edges of the display frame Wait.
  • the terminal obtains a first boundary value of the display frame to be displayed in the display window according to the position identifier carried in the display frame display instruction.
  • the second boundary value is to ensure that the display frame to be displayed does not exceed the display position coordinates of the edge of the display window; if the left side of the display frame does not exceed the boundary of the display window, the left boundary of the display frame coincides with the left boundary of the display window. Or if the right side of the display frame does not exceed the boundary of the display window, the right boundary of the display frame coincides with the right boundary of the display window, etc., then this second boundary value may be the four boundary values of the display window.
  • the terminal acquires the second boundary value of the display window corresponding to the display frame to be displayed according to the position of the display window on the screen.
  • the preset display position is the coordinates of the final position of the display frame to be displayed in the display window; this preset display position is determined according to the size of the current window and the position on the screen, which can ensure the display to be displayed The frame is completely displayed in the display window without being truncated; if it is detected that the left border of the display frame to be displayed exceeds the left border of the display window, the preset display position of the display frame to be displayed is set to be the same as the display window Align the left edge.
  • the terminal calculates a difference between the first boundary value and the second boundary value, and when the difference exceeds a pre-determined value for determining whether the display frame to be displayed is truncated
  • the display frame may be truncated; therefore, when the terminal finds that the display frame to be displayed may exceed the display window after display, it will wait for display.
  • the display frame is adjusted to a suitable preset display position, so that the content of the display frame can be completely displayed.
  • the terminal can display the display frame to be displayed at the preset display position.
  • the display frame processing method when a difference between a first boundary value corresponding to the display frame to be displayed and a second boundary value of the display frame to be displayed and its corresponding display window is detected, when the difference exceeds a preset value, The display frame corresponding to the position identification will exceed the display window, and the position of the display frame to be displayed needs to be adjusted to a preset display position to prevent the display frame from being truncated and the display incomplete.
  • the container corresponding to the display window is a container for displaying the content in the display window. If the display format of the currently displayed map is HTML (HyperText Markup Language), the container can be a DOM (Document Object Model file). Object model) element.
  • HTML HyperText Markup Language
  • the container can be a DOM (Document Object Model file). Object model) element.
  • the detection function is a function for detecting corresponding parameters in the display window; for example, in the display interface provided by HTML5 (the fifth modified version of Hypertext Markup Language HTML), it can be provided through the API (Application Programming Interface). MutationObserver (state observer, an interface that can react appropriately when a DOM tree in a certain range changes) object as a detection function.
  • HTML5 the fifth modified version of Hypertext Markup Language HTML
  • MutationObserver state observer, an interface that can react appropriately when a DOM tree in a certain range changes
  • a detection function is set in the container corresponding to the display window, and the first boundary value corresponding to the display frame to be displayed in the container and the second boundary value of the display window corresponding to the display frame to be displayed are obtained through the detection function; and continue Calculate the difference between the first boundary value and the second boundary value.
  • the difference exceeds the threshold value for judging whether the display frame to be displayed will be truncated, that is, a preset value
  • the display frame to be displayed is displayed.
  • the display frame may be truncated if it is beyond the display window; therefore, when the terminal finds that the display frame to be displayed may exceed the display window after being displayed, adjust the display frame to be displayed to a suitable preset display position. Make the contents of the display box fully displayed.
  • a boundary value corresponding to the excess portion of the display frame to be displayed may be set on the boundary of the display window. If the right border of the display frame to be displayed exceeds the right border of the display window, the right border of the display frame to be displayed is set to coincide with the right border of the display window, that is, when the mouse moves beyond the right border of the display window The display frame is always aligned with the right border of the display window.
  • the detection function in the container corresponding to the display window is set to obtain the first boundary value corresponding to the display frame to be displayed in the container and the second boundary value of the display window corresponding to the display frame to be displayed. Accurately determine the display position of the display frame to be displayed.
  • the method may further include a compatibility detection step.
  • the step includes : Obtain the browser properties corresponding to the display window; check whether the display window is compatible with the detection function in the container corresponding to the set display window according to the browser properties; when the display window is compatible with the detection function, continue to set the container corresponding to the display window.
  • the detection function in the step obtains a first boundary value corresponding to a display frame to be displayed.
  • the browser property is a parameter for detecting whether the detection function is compatible with the browser corresponding to the display window; such as the browser version and type.
  • the terminal obtains the first boundary value corresponding to the display frame to be displayed by setting a detection function in a container corresponding to the display window.
  • it is necessary to verify whether the detection function is compatible with a browser corresponding to the display window.
  • the property checks whether the version and type of this browser support the running of the detection function. If it does, then it continues to obtain the first boundary value corresponding to the display frame to be displayed by setting the detection function in the container corresponding to the display window.
  • the method may further include:
  • the error reminder is used to remind people using the terminal that the display window is incompatible with the detection function; this error reminder can be a pop-up window in the browser corresponding to the display window, or jump to another display in the browser Web pages for error alerts.
  • the terminal detects that the browser or the version of the browser is incompatible with this detection function, it generates an error reminder to prompt the incompatibility, and informs the person who is operating the terminal that the display box processing method may not be normal.
  • the corresponding person can choose not to execute this display box processing method or install a browser that is compatible with this detection function.
  • the error reminder may include information of a browser compatible with this detection function, such as Firefox, IE6 (IE, Internet Explorer, a web browser launched by Microsoft Corporation), and the like.
  • a browser compatible with this detection function such as Firefox, IE6 (IE, Internet Explorer, a web browser launched by Microsoft Corporation), and the like.
  • the preset position parameter is a parameter used to display the error reminder at the corresponding preset position; if the error reminder needs to be displayed in the upper right corner of the browser, the preset position parameter corresponding to the error reminder is the upper right of the display window
  • the position parameter of the corner that is, the distance from the top, bottom, left, and right sides of the display window.
  • the terminal After the terminal generates an error reminder, it needs to display the error reminder at a position corresponding to the browser according to the preset position parameter, so it is necessary to first obtain the preset position parameter corresponding to the error reminder.
  • step S204 after the terminal obtains a preset position parameter, the terminal can display the error reminder at a position corresponding to the display window according to the preset position parameter.
  • an error reminder is displayed in the display window to inform the user of the terminal that a corresponding browser needs to be installed to run this display frame processing method normally, and to ensure the complete display of the display frame .
  • step S110 in the above display frame processing method displays the display frame to be displayed according to a preset display position, and may further include: obtaining a size of the display window; and adjusting the size of the display frame to be displayed according to the size of the display window. ; Display the display frame to be displayed at a preset display position according to the adjusted size of the display frame to be displayed.
  • the terminal displays the Before displaying the frame, you can adjust the size of the display frame to be displayed according to the size of the display window, so that the final display frame does not exceed the display window, and then display the adjusted to-be-displayed position at the corresponding position of the display window according to the preset display position. Show box.
  • the terminal when the terminal adjusts the size of the display frame to be displayed according to the size of the display window, it can adjust the rank and content relationship of the content in the display frame to be displayed. For example, when the width of the display frame to be displayed exceeds the display window, the waiting time is reduced. Display the number of columns in the display frame, increase the number of rows, and limit the content of the display frame to be displayed in the display window. Similarly, when the width of the display frame to be displayed exceeds the display window, the number of rows can be reduced. Increase the number of columns. Other methods of limiting the content of the display frame to be displayed to the display window can also be applied to the display frame processing method of the present application.
  • the size of the display frame to be displayed is adjusted according to the size of the display window, to avoid the display frame exceeding the display window, causing the content of the display frame to be lost or unsightly, so that the display frame can be completely displayed.
  • the floating prompt box that is, the above-mentioned display box is often displayed when the mouse is moved, which is used to display the data interpretation of the corresponding part of the drawn chart.
  • the Echarts software is often opened in the HTML file in the browser, and the icons drawn by Echarts are placed in the DOM element for display and editing. Therefore, the MutationObserver interface can be set in the DOM element that displays the drawn chart. To monitor the position of the display window corresponding to the icon displayed in this DOM element on the screen and the position of the floating prompt box displayed in this display window according to the position of the mouse movement.
  • the chart display window in Echarts is on the border of the computer screen, such as the right border
  • the content of the floating prompt box may exceed the computer screen, causing the floating prompt box to display only part Content, the display is incomplete; at this time, by using the display frame processing method in this application, before the terminal displays the hovering prompt box according to the position of the mouse, if it is detected that the right border value of the hovering prompt box exceeds the right border value of the display window , The position of the right border of the hover prompt box is pulled back to a preset position within the display window. This preset position may be a position where the right border of the hover prompt box coincides with the right border of the display window.
  • the hovering prompt box can always display complete information inside the display window.
  • the position of the floating prompt box in the display window is determined by the top and left parameters in the div (the position and level of the cascading style sheet unit) corresponding to the floating prompt box, which respectively represent the floating prompt box in the The corresponding upper and left positions in the corresponding display window. Because the size and style of the floating prompt box have been defined, you only need to set its top and left values to determine the display of the floating prompt box in the current window. Position; so adjusting the position of the hover prompt only needs to set the top and left parameters.
  • steps in the flowcharts of FIGS. 1-2 are sequentially displayed in accordance with the directions of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless explicitly stated in this document, the execution of these steps is not strictly limited, and these steps can be performed in other orders. Moreover, at least a part of the steps in FIG. 1 to FIG. 2 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. These sub-steps or The execution order of the phases is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a part of the sub-steps or phases of other steps.
  • a display frame processing apparatus including: a receiving module 100, a first boundary value acquisition module 200, a second boundary value acquisition module 300, a position adjustment module 400, and a display module. 500, of which:
  • the receiving module 100 is configured to receive a display frame display instruction, where the display frame display instruction carries a position identifier of a display frame to be displayed.
  • the first boundary value acquisition module 200 is configured to acquire a display frame to be displayed corresponding to the position identifier, and acquire a first boundary value corresponding to the display frame to be displayed.
  • the second boundary value acquiring module 300 is configured to acquire a second boundary value of a display window corresponding to a display frame to be displayed.
  • the position adjustment module 400 is configured to obtain a preset display position corresponding to a display frame to be displayed when a difference between the first boundary value and the second boundary value is greater than a preset value.
  • the display module 500 is configured to display a display frame to be displayed according to a preset display position.
  • the first boundary value obtaining module 200 in the display frame processing apparatus is further configured to obtain a first boundary value corresponding to a display frame to be displayed by setting a detection function in a container corresponding to the display window.
  • the second boundary value obtaining module 300 is further configured to obtain a second boundary value of the display window corresponding to the display frame to be displayed by using a detection function.
  • the display frame processing apparatus may further include:
  • An attribute acquisition module is used to acquire the browser attributes corresponding to the display window.
  • the compatibility detection module is configured to check whether a display window is compatible with a detection function in a container corresponding to a set display window according to a browser property.
  • the compatible execution module is configured to, when the display window is compatible with the detection function, continue to obtain a first boundary value corresponding to the display frame to be displayed by setting a detection function in a container corresponding to the display window.
  • the display frame processing apparatus may further include:
  • the reminder generation module is used to generate an error reminder when the display window is not compatible with the detection function.
  • the reminder positioning unit is configured to obtain a preset position parameter corresponding to the error reminder.
  • the reminder display module is configured to display an error reminder in a display window according to a preset position parameter.
  • the display module 500 of the display frame processing apparatus may further include:
  • the window size obtaining unit is used to obtain the size of the display window.
  • the display frame adjusting unit is configured to adjust the size of the display frame to be displayed according to the size of the display window.
  • the display unit is configured to display the display frame to be displayed at a preset display position according to the adjusted size of the display frame to be displayed.
  • Each module in the display frame processing device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 4.
  • the computer equipment includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer-readable instructions.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in a non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by a processor to implement a display frame processing method.
  • the display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen
  • the input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball or a touchpad provided on the computer device casing. , Or an external keyboard, trackpad, or mouse.
  • FIG. 4 is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer equipment to which the scheme of the present application is applied.
  • the specific computer equipment may be Include more or fewer parts than shown in the figure, or combine certain parts, or have a different arrangement of parts.
  • a computer device includes a memory and one or more processors.
  • Computer-readable instructions are stored in the memory.
  • the one or more processors execute the following steps:
  • the display frame display instruction carries a position identifier of a display frame to be displayed
  • the display frame to be displayed is displayed according to a preset display position.
  • acquiring the first boundary value corresponding to the display frame to be displayed when the processor executes the computer-readable instructions includes:
  • obtaining the second boundary value of the display window corresponding to the display frame to be displayed when the processor executes the computer-readable instructions includes:
  • the second boundary value of the display window corresponding to the display frame to be displayed is obtained through a detection function.
  • the method before the processor executes the computer-readable instructions and obtains the first boundary value corresponding to the display frame to be displayed by setting a detection function in a container corresponding to the display window, the method further includes:
  • the first boundary value corresponding to the display frame to be displayed is continuously obtained by setting the detection function in the container corresponding to the display window.
  • the detection function that checks whether the display window is compatible with the set display window according to the browser property is further included:
  • An error reminder is displayed in the display window according to the preset position parameters.
  • displaying the display frame to be displayed according to a preset display position implemented when the processor executes computer-readable instructions includes:
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors execute the following steps:
  • the display frame display instruction carries a position identifier of a display frame to be displayed
  • the display frame to be displayed is displayed according to a preset display position.
  • acquiring the first boundary value corresponding to the display frame to be displayed when the computer-readable instructions are executed by the processor includes:
  • obtaining the second boundary value of the display window corresponding to the display frame to be displayed when the computer-readable instructions are executed by the processor includes:
  • the second boundary value of the display window corresponding to the display frame to be displayed is obtained through a detection function.
  • the method before the computer-readable instructions are executed by the processor and before obtaining the first boundary value corresponding to the display frame to be displayed by setting a detection function in a container corresponding to the display window, the method further includes:
  • the first boundary value corresponding to the display frame to be displayed is continuously obtained by setting the detection function in the container corresponding to the display window.
  • the detection function for checking whether the display window is compatible with the set display window corresponding to the detection function implemented by the processor further includes:
  • An error reminder is displayed in the display window according to the preset position parameters.
  • displaying the display frame to be displayed according to a preset display position implemented when the computer-readable instructions are executed by the processor includes:
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种显示框处理方法,包括:接收显示框显示指令,显示框显示指令携带有待显示的显示框的位置标识;获取与位置标识对应的待显示的显示框,并获取与待显示的显示框对应的第一边界值;获取待显示的显示框对应的显示窗口的第二边界值;当第一边界值和第二边界值的差值大于预设值时,则获取与待显示的显示框对应的预设显示位置;根据预设显示位置显示待显示的显示框。

Description

显示框处理方法、装置、计算机设备和存储介质
相关申请的交叉引用
本申请要求于2018年5月22日提交中国专利局,申请号为2018104951042,申请名称为“显示框处理方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及一种显示框处理方法、装置、计算机设备和存储介质。
背景技术
随着数据技术的发展,计算机等终端中的各种程序得到越来越广泛的应用,如ECharts(商业级数据图表)是一个常用的图表绘制工具,在使用过程中,终端上的程序常存在用于显示消息的显示框。
然而,发明人意识到,当显示框显示位于在小屏幕的边缘位置时,很容易出现被截断的问题,使得显示框的内容显示不完整。
发明内容
根据本申请公开的各种实施例,提供一种显示框处理方法、装置、计算机设备和存储介质。
一种显示框处理方法,包括:
接收显示框显示指令,所述显示框显示指令携带有待显示的显示框的位置标识;
获取与所述位置标识对应的待显示的显示框,并获取与所述待显示的显示框对应的第一边界值;
获取所述待显示的显示框对应的显示窗口的第二边界值;
当所述第一边界值和所述第二边界值的差值大于预设值时,则获取与所述待显示的显 示框对应的预设显示位置;及
根据所述预设显示位置显示所述待显示的显示框。
一种程序悬浮框管理装置,包括:
接收模块,用于接收显示框显示指令,所述显示框显示指令携带有待显示的显示框的位置标识;
第一边界值获取模块,用于获取与所述位置标识对应的待显示的显示框,并获取与所述待显示的显示框对应的第一边界值;
第二边界值获取模块,用于获取所述待显示的显示框对应的显示窗口的第二边界值;
位置调整模块,当所述第一边界值和所述第二边界值的差值大于预设值时,则获取与所述待显示的显示框对应的预设显示位置;及
显示模块,用于根据所述预设显示位置显示所述待显示的显示框。
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:
接收显示框显示指令,所述显示框显示指令携带有待显示的显示框的位置标识;
获取与所述位置标识对应的待显示的显示框,并获取与所述待显示的显示框对应的第一边界值;
获取所述待显示的显示框对应的显示窗口的第二边界值;
当所述第一边界值和所述第二边界值的差值大于预设值时,则获取与所述待显示的显示框对应的预设显示位置;及
根据所述预设显示位置显示所述待显示的显示框。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
接收显示框显示指令,所述显示框显示指令携带有待显示的显示框的位置标识;
获取与所述位置标识对应的待显示的显示框,并获取与所述待显示的显示框对应的第一边界值;
获取所述待显示的显示框对应的显示窗口的第二边界值;
当所述第一边界值和所述第二边界值的差值大于预设值时,则获取与所述待显示的显示框对应的预设显示位置;及
根据所述预设显示位置显示所述待显示的显示框。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据一个或多个实施例中显示框处理方法的流程示意图。
图2为根据一个或多个实施例中兼容性检测步骤的流程示意图。
图3为根据一个或多个实施例中显示框处理装置的框图。
图4为根据一个或多个实施例中计算机设备的框图。
具体实施方式
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供一种显示框处理方法,可以应用于但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。请参见图1,该显示框处理方法包括:
S102,接收显示框显示指令,显示框显示指令携带有待显示的显示框的位置标识。
其中,显示框是终端根据显示框显示指令将在显示窗口上显示的内容;如在Echarts的图表中,用于表示图表信息的悬浮提示框。显示框显示指令是终端接收到的用于显示显示框的指令;终端可以通过内置或外置的输入设备接收此显示框显示指令。例如,可以是终端识别出鼠标的移动、停留或者点击指令。
位置标识是显示框在屏幕中的显示窗口上的显示的位置;此位置标识可以是鼠标移动 或者点击的位置等。
具体地,终端通过输入设备接收显示框显示指令,此显示框显示指令携带有待显示的显示框在在屏幕等显示窗口上显示的位置标识,终端可根据此位置标识在对应位置显示该待显示的显示框。
S104,获取与位置标识对应的待显示的显示框,并获取与待显示的显示框对应的第一边界值。
其中,第一边界值,是待显示的显示框根据位置标识对应的显示位置进行显示时,待显示的显示框边缘与显示窗口之间的位置关系的指标;如显示框的左边界、右边界等。
具体地,终端接收到显示框显示指令之后,根据显示框显示指令携带的位置标识获取待显示的显示框在显示窗口显示后的第一边界值。
S106,获取待显示的显示框对应的显示窗口的第二边界值。
其中,第二边界值是保证此待显示的显示框不超出显示窗口边缘的显示位置坐标;如显示框的左边不超出显示窗口的边界值为显示框的左边界与显示窗口的左边界重合,或显示框的右边不超出显示窗口的边界值为显示框的右边界与显示窗口的右边界重合等,则此第二边界值可以为显示窗口的四个边界值。
具体地,终端根据显示窗口在屏幕的位置获取待显示的显示框对应的显示窗口的第二边界值。
S108,当第一边界值和第二边界值的差值大于预设值时,则获取与待显示的显示框对应的预设显示位置。
其中,预设显示位置是此待显示的显示框最终在显示窗口中的位置的坐标;此预设显示位置是根据当前窗口的大小和在屏幕中的位置确定的,其可以保证待显示的显示框在显示窗口中完整的显示而不被截断;如检测到待显示的显示框的左边界超出显示窗口的左边界时,则将此待显示的显示框的预设显示位置设置成与显示窗口的左边缘对齐。
具体地,终端获取第一边界值和第二边界值后,计算第一边界值和第二边界值的差值,当此差值超出用于判断待显示的显示框的是否会被截断的预设值时,则待显示的显示框若显示后可能超出显示窗口,则该显示框可能出现被截断的问题;故当终端发现待显示的显示框若显示后可能超出显示窗口时,将待显示的显示框调整到合适的预设显示位置,使显 示框的内容能够完整显示。
S110,根据预设显示位置显示待显示的显示框。
具体地,当终端将待显示的显示框调整到合适的预设显示位置后,即可在此预设显示位置显示待显示的显示框。
上述显示框处理方法,当检测到待显示的显示框对应的第一边界值和待显示的显示框与其对应的显示窗口的第二边界值的差值,当此差值超过预设值时,与位置标识对应的显示框将会超出显示窗口,需要将此待显示的显示框的位置调整到预设显示位置,避免显示框出现被截断,显示不完整的问题。
在一些实施例中,上述显示框处理方法中的步骤S104中获取与待显示的显示框对应的第一边界值,可以包括:通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值。则步骤S106获取待显示的显示框对应的显示窗口的第二边界值,可以包括:通过检测函数获取待显示的显示框对应的显示窗口的第二边界值。
其中,显示窗口对应的容器是用于盛放显示窗口中的内容的容器;如当前显示地图的显示格式是HTML(HyperText Markup Language超文本标记语言),则该容器可以为DOM(Document Object Model文件对象模型)元素。
检测函数为用于检测显示窗口中对应参数的函数;如在HTML5(超文本标记语言HTML的第五次修改版本)提供的显示界面中可以通过API(Application Programming Interface,应用程序编程接口)提供的MutationObserver(状态观察员,一种能在某个范围内的DOM树发生变化时作出适当反应的接口)对象作为检测函数。
具体地,在显示窗口对应的容器中设置检测函数,通过检测函数获取容器中的待显示的显示框对应的第一边界值和待显示的显示框对应的显示窗口的第二边界值;并继续计算第一边界值和第二边界值的差值,当此差值超出用于判断待显示的显示框的是否会被截断的临界值,即预设值时,则待显示的显示框若显示后可能超出显示窗口,则该显示框可能出现被截断的问题;故当终端发现待显示的显示框若显示后可能超出显示窗口时,将待显示的显示框调整到合适的预设显示位置,使显示框的内容能够完整显示。
可选地,当待显示的显示框若显示后可能超出显示窗口时,可以将待显示的显示框超出部分对应的边界值设置在显示窗口的边界上。如待显示的显示框的右边界超出了显示窗 口的右边界,则将待显示的显示框的右边界设置成与显示窗口的右边界重合,即在鼠标移动到显示窗口的右边界之外时,显示框始终与显示窗口的右边界对齐。
上述实施例中,通过设置与显示窗口对应的容器中的检测函数获取容器中的待显示的显示框对应的第一边界值和待显示的显示框对应的显示窗口的第二边界值,能够更准确地判断待显示的显示框的显示位置。
在一些实施例中,上述显示框处理方法中的通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值之前,还可以包括兼容性检测步骤,该步骤包括:获取显示窗口对应的浏览器属性;根据浏览器属性检查显示窗口是否与设置的显示窗口对应的容器中的检测函数兼容;当显示窗口与检测函数兼容时,继续通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值。
其中,浏览器属性是用于检测检测函数与显示窗口对应的浏览器是否兼容的参数;如浏览器的版本、类型等属性。
具体地,在终端通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值之前,需要先验证此检测函数与显示窗口对应的浏览器是否兼容,通过浏览器属性检测此浏览器的版本与类型是否支持检测函数的运行,若支持,则继续通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值。
上述实施例中,为保证检测函数能够正常运行,先验证此检测函数与显示窗口对应的浏览器是否兼容,保证上述显示框处理方法被正常执行,完整地显示待显示的显示框。
在一些实施例中,请参见图2,上述显示框处理方法中的根据浏览器属性检查显示窗口是否与设置的显示窗口对应的容器中的检测函数兼容之后,还可以包括:
S202,当显示窗口与检测函数不兼容时,生成错误提醒。
其中,错误提醒是用于提醒使用终端的人员显示窗口与检测函数不兼容的提醒信息;此错误提醒可以是显示窗口对应的浏览器中的弹窗,或在浏览器中跳转到另一个显示错误提醒的网页。
具体地,当终端检测到浏览器或此浏览器的版本与此检测函数不兼容时,则生成用于提示此不兼容情况的错误提醒,告知正在操作终端的人员此显示框处理方法可能无法正常运行,对应的人员可选择不执行此显示框处理方法或者安装与此检测函数能够兼容的浏览 器。
可选地,此错误提醒可以包括与此检测函数能够兼容的浏览器的信息,如火狐、IE6(IE,Internet Explorer,是微软公司推出的一款网页浏览器)等。
S204,获取错误提醒对应的预设位置参数。
其中,预设位置参数是用于在对应的预设位置显示此错误提醒的参数;如若需要在浏览器的右上角显示该错误提醒时,则错误提醒对应的预设位置参数则为显示窗口右上角的位置参数,即与显示窗口的上、下、左、右四个边的距离。
具体地,终端生成错误提醒后,需要根据预设位置参数在浏览器对应的位置显示此错误提醒,故需先获取错误提醒对应的预设位置参数。
S206,根据预设位置参数在显示窗口中显示错误提醒。
具体地,在步骤S204中,终端获取到预设位置参数后,即可根据此预设位置参数在显示窗口对应的位置显示此错误提醒。
上述实施例中,当当显示窗口与检测函数不兼容时,在显示窗口中显示错误提醒,告知终端的使用人员需要安装对应的浏览器才可正常运行此显示框处理方法,保证显示框的完整显示。
在一些实施例中,上述显示框处理方法中的步骤S110根据预设显示位置显示待显示的显示框,还可以包括:获取显示窗口的尺寸;根据显示窗口的尺寸调整待显示的显示框的大小;根据调整后的待显示的显示框的大小在预设显示位置显示待显示的显示框。
具体地,若待显示的数据较多或显示窗口尺寸较小时,则显示框可能超出显示窗口,一样可能存在显示框被截断而导致的显示框内容不完整的问题,故终端在显示待显示的显示框之前,可以根据显示窗口的尺寸调整待显示的显示框的大小,使得最终显示的显示框不会超出显示窗口,再根据预设显示位置在显示窗口的对应位置显示调整后的待显示的显示框。
可选地,终端根据显示窗口的尺寸调整待显示的显示框的大小时,可以调整待显示的显示框中内容的行列关系,如当待显示的显示框的宽度超出显示窗口时,则减少待显示的显示框中内容的列数,增加行数,将待显示的显示框的内容限缩在显示窗口内;同样地,当待显示的显示框的宽度超出显示窗口时,则可减少行数、增加列数。其他将待显示的显 示框的内容限缩于显示窗口的方法也可以应用在本申请的显示框处理方法中。
上述实施例中,根据显示窗口的尺寸,对待显示的显示框的大小进行调整,避免显示框超出显示窗口,造成显示框的内容丢失或不美观,使得显示框能够完整地显示。
例如,在终端上使用Echarts进行图表绘制时,常通过在鼠标移动时显示悬浮提示框,即上述的显示框,用于显示已绘制图表对应部分的数据解释。而在实际使用时,常配合浏览器中的HTML文件中打开Echarts软件,并将Echarts绘制的图标放置于DOM元素中进行显示和编辑,故可以通过在显示绘制的图表的DOM元素中设置MutationObserver接口,来监测此DOM元素中显示的图标对应的显示窗口在屏幕中的位置和此显示窗口中根据鼠标移动位置显示的悬浮提示框的位置。当Echarts中的图表显示窗口位于计算机屏幕的边界时,如右边界,则若鼠标落在靠近屏幕右边界的位置,其悬浮提示框的内容可能会超出计算机屏幕,造成悬浮提示框只能显示部分内容,显示不完整;此时,通过本申请中的显示框处理方法,终端在根据鼠标移动的位置显示悬浮提示框之前,若检测到悬浮提示框的右边界值超出了显示窗口的右边界值,则将悬浮提示框的右边界的位置拉回到显示窗口之内的预设位置,此预设位置可以是使得此悬浮提示框的右边界正好与显示窗口的右边界重合的位置,通过此方法,使得不论鼠标是否落在显示窗口之外,此悬浮提示框的显示范围始终固定在显示窗口内部,悬浮提示框始终能够在显示窗口内部显示完整的信息。其中,悬浮提示框的在显示窗口中的的位置由悬浮提示框所对应的div(层叠样式表单元的位置和层次)层中的top和left两个参数所决定,它们分别代表悬浮提示框在其对应的显示窗口中的上边和左边对应的位置,由于悬浮提示框的大小和样式已经被定义,只需对其top、left值进行设置,即可确定此悬浮提示框在当前窗口中的显示位置;故调整悬浮提示狂的位置只需对top和left两个参数进行设定即可。而由于此MutationObserver接口并非与所有浏览器兼容,所以在使用此接口之前,需要先检测此接口与当前使用的浏览器的兼容性,若兼容,则继续运行此显示框处理方法,若不兼容,则生成错误提醒,告知用户需要更换至其他浏览器,否则此显示框处理方法可能运行出错。
应该理解的是,虽然图1至图2的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1至图2中 的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在一些实施例中,如图3所示,提供了一种显示框处理装置,包括:接收模块100、第一边界值获取模块200、第二边界值获取模块300、位置调整模块400和显示模块500,其中:
接收模块100,用于接收显示框显示指令,显示框显示指令携带有待显示的显示框的位置标识。
第一边界值获取模块200,用于获取与位置标识对应的待显示的显示框,并获取与待显示的显示框对应的第一边界值。
第二边界值获取模块300,用于获取待显示的显示框对应的显示窗口的第二边界值。
位置调整模块400,用于当第一边界值和第二边界值的差值大于预设值时,则获取与待显示的显示框对应的预设显示位置。
显示模块500,用于根据预设显示位置显示待显示的显示框。
在一些实施例中,上述显示框处理装置中的第一边界值获取模块200,还用于通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值。
则第二边界值获取模块300,还用于通过检测函数获取待显示的显示框对应的显示窗口的第二边界值。
在一些实施例中,上述显示框处理装置中的还可以包括:
属性获取模块,用于获取显示窗口对应的浏览器属性。
兼容性检测模块,用于根据浏览器属性检查显示窗口是否与设置的显示窗口对应的容器中的检测函数兼容。
兼容执行模块,用于当显示窗口与检测函数兼容时,继续通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值。
在一些实施例中,上述显示框处理装置还可以包括:
提醒生成模块,用于当显示窗口与检测函数不兼容时,生成错误提醒。
提醒定位单元,用于获取错误提醒对应的预设位置参数。
提醒显示模块,用于根据预设位置参数在显示窗口中显示错误提醒。
在一些实施例中,上述显示框处理装置的显示模块500,还可以包括:
窗口尺寸获取单元,用于获取显示窗口的尺寸。
显示框调整单元,用于根据显示窗口的尺寸调整待显示的显示框的大小。
显示单元,用于根据调整后的待显示的显示框的大小在预设显示位置显示待显示的显示框。
关于显示框处理装置的具体限定可以参见上文中对于显示框处理方法的限定,在此不再赘述。上述显示框处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一些实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图4所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机可读指令。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种显示框处理方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。
本领域技术人员可以理解,图4中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行以下步骤:
接收显示框显示指令,显示框显示指令携带有待显示的显示框的位置标识;
获取与位置标识对应的待显示的显示框,并获取与待显示的显示框对应的第一边界 值;
获取待显示的显示框对应的显示窗口的第二边界值;
当第一边界值和第二边界值的差值大于预设值时,则获取与待显示的显示框对应的预设显示位置;及
根据预设显示位置显示待显示的显示框。
在一些实施例中,处理器执行计算机可读指令时实现的获取与待显示的显示框对应的第一边界值,包括:
通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值;及
则处理器执行计算机可读指令时实现的获取待显示的显示框对应的显示窗口的第二边界值,包括:
通过检测函数获取待显示的显示框对应的显示窗口的第二边界值。
在一些实施例中,处理器执行计算机可读指令时实现的通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值之前,还包括:
获取显示窗口对应的浏览器属性;
根据浏览器属性检查显示窗口是否与设置的显示窗口对应的容器中的检测函数兼容;及
当显示窗口与检测函数兼容时,继续通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值。
在一些实施例中,处理器执行计算机可读指令时实现的根据浏览器属性检查显示窗口是否与设置的显示窗口对应的容器中的检测函数兼容之后,还包括:
当显示窗口与检测函数不兼容时,生成错误提醒;
获取错误提醒对应的预设位置参数;及
根据预设位置参数在显示窗口中显示错误提醒。
在一些实施例中,处理器执行计算机可读指令时实现的根据预设显示位置显示待显示的显示框,包括:
获取显示窗口的尺寸;
根据显示窗口的尺寸调整待显示的显示框的大小;及
根据调整后的待显示的显示框的大小在预设显示位置显示待显示的显示框。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
接收显示框显示指令,显示框显示指令携带有待显示的显示框的位置标识;
获取与位置标识对应的待显示的显示框,并获取与待显示的显示框对应的第一边界值;
获取待显示的显示框对应的显示窗口的第二边界值;
当第一边界值和第二边界值的差值大于预设值时,则获取与待显示的显示框对应的预设显示位置;及
根据预设显示位置显示待显示的显示框。
在一些实施例中,计算机可读指令被处理器执行时实现的获取与待显示的显示框对应的第一边界值,包括:
通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值;及
则计算机可读指令被处理器执行时实现的获取待显示的显示框对应的显示窗口的第二边界值,包括:
通过检测函数获取待显示的显示框对应的显示窗口的第二边界值。
在一些实施例中,计算机可读指令被处理器执行时实现的通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值之前,还包括:
获取显示窗口对应的浏览器属性;
根据浏览器属性检查显示窗口是否与设置的显示窗口对应的容器中的检测函数兼容;及
当显示窗口与检测函数兼容时,继续通过设置与显示窗口对应的容器中的检测函数获取待显示的显示框对应的第一边界值。
在一些实施例中,计算机可读指令被处理器执行时实现的根据浏览器属性检查显示窗口是否与设置的显示窗口对应的容器中的检测函数兼容之后,还包括:
当显示窗口与检测函数不兼容时,生成错误提醒;
获取错误提醒对应的预设位置参数;及
根据预设位置参数在显示窗口中显示错误提醒。
在一些实施例中,计算机可读指令被处理器执行时实现的根据预设显示位置显示待显示的显示框,包括:
获取显示窗口的尺寸;
根据显示窗口的尺寸调整待显示的显示框的大小;及
根据调整后的待显示的显示框的大小在预设显示位置显示待显示的显示框。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种显示框处理方法,包括:
    接收显示框显示指令,所述显示框显示指令携带有待显示的显示框的位置标识;
    获取与所述位置标识对应的待显示的显示框,并获取与所述待显示的显示框对应的第一边界值;
    获取所述待显示的显示框对应的显示窗口的第二边界值;
    当所述第一边界值和所述第二边界值的差值大于预设值时,则获取与所述待显示的显示框对应的预设显示位置;及
    根据所述预设显示位置显示所述待显示的显示框。
  2. 根据权利要求1所述的方法,其特征在于,所述获取与所述待显示的显示框对应的第一边界值,包括:
    通过设置与所述显示窗口对应的容器中的检测函数,获取所述待显示的显示框对应的第一边界值;及
    所述获取所述待显示的显示框对应的显示窗口的第二边界值,包括:
    通过所述检测函数获取所述待显示的显示框对应的显示窗口的第二边界值。
  3. 根据权利要求2所述的方法,其特征在于,所述通过设置与所述显示窗口对应的容器中的检测函数获取所述待显示的显示框对应的第一边界值之前,还包括:
    获取所述显示窗口对应的浏览器属性;
    根据所述浏览器属性检查所述显示窗口是否与所述设置的所述显示窗口对应的容器中的检测函数兼容;及
    当所述显示窗口与所述检测函数兼容时,继续通过设置与所述显示窗口对应的容器中的检测函数获取所述待显示的显示框对应的第一边界值。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述浏览器属性检查所述显示窗口是否与所述设置的所述显示窗口对应的容器中的检测函数兼容之后,还包括:
    当所述显示窗口与所述检测函数不兼容时,生成错误提醒;
    获取所述错误提醒对应的预设位置参数;及
    根据所述预设位置参数在所述显示窗口中显示所述错误提醒。
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述预设显示位置显示所述待显示的显示框,包括:
    获取所述显示窗口的尺寸;
    根据所述显示窗口的尺寸调整所述待显示的显示框的大小;及
    根据调整后的所述待显示的显示框的大小在所述预设显示位置显示所述待显示的显示框。
  6. 一种程序悬浮框管理装置,包括:
    接收模块,用于接收显示框显示指令,所述显示框显示指令携带有待显示的显示框的位置标识;
    第一边界值获取模块,用于获取与所述位置标识对应的待显示的显示框,并获取与所述待显示的显示框对应的第一边界值;
    第二边界值获取模块,用于获取所述待显示的显示框对应的显示窗口的第二边界值;
    位置调整模块,用于当所述第一边界值和所述第二边界值的差值大于预设值时,则获取与所述待显示的显示框对应的预设显示位置;及
    显示模块,用于根据所述预设显示位置显示所述待显示的显示框。
  7. 根据权利要求6所述的装置,其特征在于,所述第一边界值获取模块,还用于通过设置与所述显示窗口对应的容器中的检测函数获取所述待显示的显示框对应的第一边界值;及
    则所述第二边界值获取模块,还用于通过所述检测函数获取所述待显示的显示框对应的显示窗口的第二边界值。
  8. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    属性获取模块,用于获取所述显示窗口对应的浏览器属性;
    兼容性检测模块,用于根据所述浏览器属性检查所述显示窗口是否与所述设置的所述显示窗口对应的容器中的检测函数兼容;及
    兼容执行模块,用于当所述显示窗口与所述检测函数兼容时,继续通过设置与所述显示窗口对应的容器中的检测函数获取所述待显示的显示框对应的第一边界值。
  9. 根据权利要求8所述的装置,其特征在于,所述装置还包括:
    提醒生成模块,用于当所述显示窗口与所述检测函数不兼容时,生成错误提醒;
    提醒定位单元,用于获取所述错误提醒对应的预设位置参数;及
    提醒显示模块,用于根据所述预设位置参数在所述显示窗口中显示所述错误提醒。
  10. 根据权利要求8所述的装置,其特征在于,所述显示模块包括:
    窗口尺寸获取单元,用于获取所述显示窗口的尺寸;
    显示框调整单元,用于根据所述显示窗口的尺寸调整所述待显示的显示框的大小;及
    显示单元,用于根据调整后的所述待显示的显示框的大小在所述预设显示位置显示所述待显示的显示框。
  11. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收显示框显示指令,所述显示框显示指令携带有待显示的显示框的位置标识;
    获取与所述位置标识对应的待显示的显示框,并获取与所述待显示的显示框对应的第一边界值;
    获取所述待显示的显示框对应的显示窗口的第二边界值;
    当所述第一边界值和所述第二边界值的差值大于预设值时,则获取与所述待显示的显示框对应的预设显示位置;及
    根据所述预设显示位置显示所述待显示的显示框。
  12. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时执行的所述获取与所述待显示的显示框对应的第一边界值,包括:
    通过设置与所述显示窗口对应的容器中的检测函数,获取所述待显示的显示框对应的第一边界值;及
    所述处理器执行所述计算机可读指令时执行的所述获取所述待显示的显示框对应的显示窗口的第二边界值,包括:
    通过所述检测函数获取所述待显示的显示框对应的显示窗口的第二边界值。
  13. 根据权利要求12所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时执行的所述通过设置与所述显示窗口对应的容器中的检测函数获取所述待显 示的显示框对应的第一边界值之前,还包括:
    获取所述显示窗口对应的浏览器属性;
    根据所述浏览器属性检查所述显示窗口是否与所述设置的所述显示窗口对应的容器中的检测函数兼容;及
    当所述显示窗口与所述检测函数兼容时,继续通过设置与所述显示窗口对应的容器中的检测函数获取所述待显示的显示框对应的第一边界值。
  14. 根据权利要求13所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时执行的所述根据所述浏览器属性检查所述显示窗口是否与所述设置的所述显示窗口对应的容器中的检测函数兼容之后,还包括:
    当所述显示窗口与所述检测函数不兼容时,生成错误提醒;
    获取所述错误提醒对应的预设位置参数;及
    根据所述预设位置参数在所述显示窗口中显示所述错误提醒。
  15. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时执行的所述根据所述预设显示位置显示所述待显示的显示框,包括:
    获取所述显示窗口的尺寸;
    根据所述显示窗口的尺寸调整所述待显示的显示框的大小;及
    根据调整后的所述待显示的显示框的大小在所述预设显示位置显示所述待显示的显示框。
  16. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收显示框显示指令,所述显示框显示指令携带有待显示的显示框的位置标识;
    获取与所述位置标识对应的待显示的显示框,并获取与所述待显示的显示框对应的第一边界值;
    获取所述待显示的显示框对应的显示窗口的第二边界值;
    当所述第一边界值和所述第二边界值的差值大于预设值时,则获取与所述待显示的显示框对应的预设显示位置;及
    根据所述预设显示位置显示所述待显示的显示框。
  17. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时执行所述获取与所述待显示的显示框对应的第一边界值,包括:
    通过设置与所述显示窗口对应的容器中的检测函数,获取所述待显示的显示框对应的第一边界值;及
    所述计算机可读指令被所述处理器执行时执行所述获取所述待显示的显示框对应的显示窗口的第二边界值,包括:
    通过所述检测函数获取所述待显示的显示框对应的显示窗口的第二边界值。
  18. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时执行所述通过设置与所述显示窗口对应的容器中的检测函数获取所述待显示的显示框对应的第一边界值之前,还包括:
    获取所述显示窗口对应的浏览器属性;
    根据所述浏览器属性检查所述显示窗口是否与所述设置的所述显示窗口对应的容器中的检测函数兼容;及
    当所述显示窗口与所述检测函数兼容时,继续通过设置与所述显示窗口对应的容器中的检测函数获取所述待显示的显示框对应的第一边界值。
  19. 根据权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时执行所述根据所述浏览器属性检查所述显示窗口是否与所述设置的所述显示窗口对应的容器中的检测函数兼容之后,还包括:
    当所述显示窗口与所述检测函数不兼容时,生成错误提醒;
    获取所述错误提醒对应的预设位置参数;及
    根据所述预设位置参数在所述显示窗口中显示所述错误提醒。
  20. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时执行所述根据所述预设显示位置显示所述待显示的显示框,包括:
    获取所述显示窗口的尺寸;
    根据所述显示窗口的尺寸调整所述待显示的显示框的大小;及
    根据调整后的所述待显示的显示框的大小在所述预设显示位置显示所述待显示的显示框。
PCT/CN2018/096908 2018-05-22 2018-07-24 显示框处理方法、装置、计算机设备和存储介质 WO2019223093A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810495104.2A CN108664310A (zh) 2018-05-22 2018-05-22 显示框处理方法、装置、计算机设备和存储介质
CN201810495104.2 2018-05-22

Publications (1)

Publication Number Publication Date
WO2019223093A1 true WO2019223093A1 (zh) 2019-11-28

Family

ID=63777415

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/096908 WO2019223093A1 (zh) 2018-05-22 2018-07-24 显示框处理方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN108664310A (zh)
WO (1) WO2019223093A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871741A (zh) * 2018-12-28 2019-06-11 青岛海信电器股份有限公司 一种用于智能电视的图像中识别物的标注方法和装置
CN109933788B (zh) * 2019-02-14 2023-05-23 北京百度网讯科技有限公司 类型确定方法、装置、设备和介质
CN113490035B (zh) * 2021-07-16 2023-06-23 南京炫佳网络科技有限公司 一种显示方法、装置、电视及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025685A (zh) * 2006-02-16 2007-08-29 国际商业机器公司 容器层级中的多层单元的增强可视化和选择的方法和系统
CN104503682A (zh) * 2014-11-07 2015-04-08 联发科技(新加坡)私人有限公司 一种屏幕显示窗口的处理方法以及移动终端
CN104978318A (zh) * 2014-04-02 2015-10-14 腾讯科技(深圳)有限公司 浏览器控制方法及浏览器控制装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530026B (zh) * 2013-10-31 2018-05-18 北京国双科技有限公司 网页弹出框定位方法和装置
CN103678496B (zh) * 2013-11-18 2018-01-30 乐视网信息技术(北京)股份有限公司 提供调整检索页筛选显示的方法和系统
CN106569651A (zh) * 2015-10-08 2017-04-19 北京国双科技有限公司 一种页面弹出层位置的定位方法及装置
CN107551547B (zh) * 2017-09-07 2020-10-23 网易(杭州)网络有限公司 游戏信息显示方法与装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025685A (zh) * 2006-02-16 2007-08-29 国际商业机器公司 容器层级中的多层单元的增强可视化和选择的方法和系统
CN104978318A (zh) * 2014-04-02 2015-10-14 腾讯科技(深圳)有限公司 浏览器控制方法及浏览器控制装置
CN104503682A (zh) * 2014-11-07 2015-04-08 联发科技(新加坡)私人有限公司 一种屏幕显示窗口的处理方法以及移动终端

Also Published As

Publication number Publication date
CN108664310A (zh) 2018-10-16

Similar Documents

Publication Publication Date Title
US10984169B2 (en) Systems, methods, and computer-readable media for providing a dynamic loupe for displayed information
US7966558B2 (en) Snipping tool
WO2019223093A1 (zh) 显示框处理方法、装置、计算机设备和存储介质
US20150277571A1 (en) User interface to capture a partial screen display responsive to a user gesture
US9773072B2 (en) Systems and methods for developing adaptive layouts for electronic content
WO2014161347A1 (en) Method and device for relocating input box to target position in mobile terminal browser, and storage medium
TWI545450B (zh) 瀏覽器顯示子頁面的處理方法及瀏覽器
CN110659092B (zh) 网页截图方法、装置、计算机设备和存储介质
WO2020118485A1 (en) Method of Detecting User Interface Layout Issues for Web Applications
US10627979B2 (en) Method, device, and storage medium for generating and self-adaptively rotating voice recognition interface
US20150186019A1 (en) Method and apparatus for manipulating and presenting images included in webpages
TW201510746A (zh) 網頁元件的控制方法及裝置
US20150067469A1 (en) Electronic apparatus and method for display control
CN111222069B (zh) 报表组件调整方法、装置及相关设备
US20130111333A1 (en) Scaling objects while maintaining object structure
CN105718228B (zh) 动态内容显示的方法和装置
WO2019214082A1 (zh) 地图显示方法、装置、计算机设备和存储介质
CN113076165A (zh) 一种页面校验方法和装置
US20130268873A1 (en) Associating content with a graphical interface window using a fling gesture
CN110598142A (zh) 网页校准方法、装置、计算机设备及存储介质
CN112035108B (zh) 一种用户界面布局设计方法、系统、终端及介质
CN114297547A (zh) 页面元素调整方法、装置、设备、存储介质和程序产品
CN110502174B (zh) 一种信息显示方法、装置、电子设备及存储介质
TW201416967A (zh) 呈現界面工具集的方法及系統
US11210106B2 (en) Simulated visual hierarchy while facilitating cross-extension communication

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18919908

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.03.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18919908

Country of ref document: EP

Kind code of ref document: A1