sizing

What would be a good way to measure the size of a JSP project?

依然范特西╮ 提交于 2019-12-10 10:12:02
问题 Given an existing JSP project, I would like to get a feel for the complexity/size of the "view" portion of the project. Here's what I've done so far: Pulled the list of JSP's that have been compiled from the production server within the last x months (that eliminates 'dead' jsps). Wrote a quick scanner to find the JSP fragment files that are imported into the compiled pages. Pulled the size of the file and the timestamp off the file system. So now I have a list of pages and the fragments

How can I make the modal popup scroll its contents with the page?

牧云@^-^@ 提交于 2019-12-08 19:12:34
问题 I've got a modal popup and when it loads contents that are taller than the browser height I am unable to scroll down to view the rest of the information. Instead the background can scroll but the popup won't. Instead I'd like to have the popup stay put and when the user scrolls up or down it leave the popup in place and let them scroll to the bottom of the contents. If you make a super long post on Facebook the popup works correctly and I'd like to know how I can get this same effect with

inter related stack panel sizing

谁说胖子不能爱 提交于 2019-12-08 07:19:17
问题 I have a recursively defined user control that needs the following properties: there are two columns the first contains a single border around some text the second column contains a stack of these same type of controls (the recursive part) if the box in the first column is shorter than the total height of the stacked boxes in the second column, the box should expand to make both columns the same height. If the total height of the second column is shorter than the box in the first column, then

Fancybox 2 Dynamic Width Based on Content Size

眉间皱痕 提交于 2019-12-04 04:45:33
问题 I've got an IFrame being opened via Fancybox 2 that plays a video: HTML: <a class="fancybox-video" href="/user/intro-file.cfm" rel="file_name" title="View Video">File Name</a> Javascript: $("a.fancybox-video").fancybox({ scrolling : 'no', type : 'iframe', helpers : { title: null } }); The video is user-uploaded, so I don't know the size. I will be setting a maxHeight and maxWidth on the Fancybox eventually, but I've removed them for easier troubleshooting. How can I set the width of the

Sizing a child element relative to parent's border-box

前提是你 提交于 2019-12-03 12:48:28
If I set the size of a child element in percentage, the size will be calculated relative to parent's content-box , independently from the fact that I have set its box-sizing property to border-box . So if I have something like this: .parent { box-sizing: border-box; padding: 0 100px; width: 600px; } .child { width: 50%; } The width of .child will be 50% of 400px (parent's width after padding has been applied). You can see an example here: JSBin Main Question Is there a way to make the width of a child element relative to the parent's border-box rather than the parent's content-box ? Bonus

How get different size windows in UWP Multiple Views?

隐身守侯 提交于 2019-12-02 22:15:08
问题 In the following code I can not tinker with the ViewSizePreference options and get the child to be smaller than the parent. I am making a popup from a page. That part works fine. However, both windows are the exact same size. private async void Test_Click(object sender,RoutedEventArgs e){ var currentAV = ApplicationView.GetForCurrentView(); var newAV = CoreApplication.CreateNewView(); await newAV.Dispatcher.RunAsync( CoreDispatcherPriority.Normal, async () => { var newWindow = Window.Current;

How get different size windows in UWP Multiple Views?

走远了吗. 提交于 2019-12-02 09:28:58
In the following code I can not tinker with the ViewSizePreference options and get the child to be smaller than the parent. I am making a popup from a page. That part works fine. However, both windows are the exact same size. private async void Test_Click(object sender,RoutedEventArgs e){ var currentAV = ApplicationView.GetForCurrentView(); var newAV = CoreApplication.CreateNewView(); await newAV.Dispatcher.RunAsync( CoreDispatcherPriority.Normal, async () => { var newWindow = Window.Current; var newAppView = ApplicationView.GetForCurrentView(); newAppView.Title = "New window"; var frame = new

Image within a WPF application displays smaller than when viewed in external viewer

扶醉桌前 提交于 2019-12-01 05:30:42
When I display a JPEG in my WPF application (using the following code), it is shown significantly smaller than if I open the JPEG in the Windows Picture Viewer at actual size. I've drilled into the properties of my ImageSource at runtime and my image has: a DPI of 219 a Height of 238.02739726027397 a Width of 312.54794520547944 a PixelHeight of 543 and a PixelWidth of 713 When I use a screen ruler to measure the WPF display of the image, I get approx. 313x240 pixels (which if I could positiont the ruler perfectly would probably be equal to the Width and Height that the ImageSource is reporting

WPF - FlowDocument - Stretch Table to Entire Width?

落爺英雄遲暮 提交于 2019-12-01 04:43:25
I have a DataTable containing an arbitrary number of columns and rows which I am trying to print out. The best luck I've had so far is by putting the data into a Table and then adding the table to a FlowDocument. So far so good. The problem I have right now is that the Table only "wants" to take up about half of the document's width. I've already set the appropriate values for the FlowDocument's PageWidth and ColumnWidth properties, but the Table doesn't seem to want to stretch to fill up the allotted space? Kelly Cline I had some luck with this: How to set the original width of a WPF

WPF - FlowDocument - Stretch Table to Entire Width?

情到浓时终转凉″ 提交于 2019-12-01 03:13:29
问题 I have a DataTable containing an arbitrary number of columns and rows which I am trying to print out. The best luck I've had so far is by putting the data into a Table and then adding the table to a FlowDocument. So far so good. The problem I have right now is that the Table only "wants" to take up about half of the document's width. I've already set the appropriate values for the FlowDocument's PageWidth and ColumnWidth properties, but the Table doesn't seem to want to stretch to fill up the