In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
The content of this article mainly focuses on how to optimize the problem of DBD distortion. The content of the article is clear and clear. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!
Optimization of DBD distortion problem:
First of all, determine whether it satisfies a screen display:
1. If the one-screen display is satisfied, the jsp that displays DBD by default is self-adaptive in width and height. In this case, there are two ways to ensure that each component is undistorted:
1. Determine the size of each component in the DBD area, and then the report paper is also specified to the same size, so that after adjustment, each component will not be distorted according to the width and height, but there are also some special cases (such as figure 1 below). According to the above setting, some text is still flattened, so you can achieve the effect of local text adjustment by increasing the dbd column and adjusting its column width at the same time.
Figure 1:
Figure 2 after adjustment:
two。 Implement all components in one table in the same way as the master subreport
Analyze the disadvantages of the above two ways:
In the first method, because each component is presented in an adaptive way, all the settings related to positioning may have problems such as incorrect prompt information or non-specified parts of hyperlinks due to inaccurate positioning.
From the point of view of solving the above problem, you can set the component to not adapt or cancel the prompt / hyperlink setting, but considering the overall effect of DBD, if the setting is not suitable, the component may be distorted or the component needs to be scrolled.
The second method can not achieve the linkage between the components because of the limitation of the main subreport.
2. If the one-screen display is not satisfied, for example, the condition that the final effect contains 10 components on one screen does not satisfy the clear presentation of each component, then we first need to manually modify the width and height in the dbd display interface to a fixed value, and add document.getElementById ("board1_area") .style.style = "auto" to the script of jsp; view all the controls in the form of scrollbars
The next step is to achieve the desired effect by adjusting the width and height of each component (synchronously adjusting the page size of the corresponding report) and adaptively (note that if the adjustment process finds that the page width and height is insufficient or exceeds, the page width and height can be adjusted again). For example, a component contains a pie chart no matter how I adjust the width and height of the component, it is somewhat flattened as follows
Then we can adjust his adaptive way to change the default width and height adaptation to highly adaptive so that the longitudinal stretching of the component has achieved the normal effect.
This step is mainly adjusted by observing whether the effect is lengthened horizontally or flattened longitudinally to determine how to adjust the width and height of the area where the component is located (special note: it is recommended to give priority to adjusting the width and height of the component in this step)
Thank you for your reading, I believe you have some understanding of "how to optimize DBD distortion", go to practice quickly, if you want to know more related knowledge points, you can follow the website! The editor will continue to bring you better articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.