scrollbar

Horizontal scrollbar not showing on my textbox

廉价感情. 提交于 2019-12-22 10:28:43
问题 On a Winform C# application, i display a textbox on my form. This textbox will display one line, just one. I would like to show and be abe to use an horizontal scrollbar. I set the property "scrollbar" to horizontal : ScrollBar doesn't show. I add WordWrap to false : ScrollBar doesn't show. I add MultiLine to true ( even if one ligne ) : ScrollBar doesn't show. My line displayed is a loter "longer" than the contrôle, so i really need a scrollbar :( Here is the definition : this.TxtBox

how to retain the browser scroll position after any event gets fire

笑着哭i 提交于 2019-12-22 09:12:07
问题 When I am clicking on any button my page is re loading and page position is getting change. first page is scrolling bottom then going on top again its moving to down side. How could I retain the scroll position same after page refresh on any event click. I tried Page.MaintainScrollPositionOnPostBack = true; on my page load but its not working. I used ajax updatepanel after using it my browser is getting stuck, and performance is very slow. I have one aspx page, in that i am calling 5 web user

Element outside container without creating scrollbars

风格不统一 提交于 2019-12-22 08:38:10
问题 Can I make a banner reach outside of its container, without creating horizontal scrollbars if the window is too narrow? I thought I had done this before with negative margins, but can't get it to work now. Demo: http://jsfiddle.net/Znarkus/s95uz/ <div id="main"> <div id="banner">I want this to not create a horizontal scrollbar, when the window/frame is too narrow.</div> <div id="content"> </div> </div> ​ 回答1: You can use a container that has a min-width of 500px or width 100% depending on if

WPF Horizontal Scrollbar is not visible

与世无争的帅哥 提交于 2019-12-22 06:28:11
问题 I have a Grid inside ScrollViewer. Grid has only one columns and many rows. I add controls into grid rows. The problem is I can see VerticalScrollBar when I am adding controls but I cannot see HorizontalScrollBar although I add very wide controls. My xaml looks like the following <ScrollViewer> <Grid> rows ... </Grid> </ScrollViewer> Thanks, ant. 回答1: Set the HorizontalScrollBarVisibility of the ScrollViewer to "Auto" or "Visible". <ScrollViewer HorizontalScrollBarVisibility="Auto"> <Grid> ..

WPF Horizontal Scrollbar is not visible

白昼怎懂夜的黑 提交于 2019-12-22 06:28:06
问题 I have a Grid inside ScrollViewer. Grid has only one columns and many rows. I add controls into grid rows. The problem is I can see VerticalScrollBar when I am adding controls but I cannot see HorizontalScrollBar although I add very wide controls. My xaml looks like the following <ScrollViewer> <Grid> rows ... </Grid> </ScrollViewer> Thanks, ant. 回答1: Set the HorizontalScrollBarVisibility of the ScrollViewer to "Auto" or "Visible". <ScrollViewer HorizontalScrollBarVisibility="Auto"> <Grid> ..

custom scrollbar without jquery

做~自己de王妃 提交于 2019-12-22 06:20:32
问题 I'm looking for a custom scrollbar that works without jquery. I can't use jquery because the other stuff is also jqueryless and it's optimized for fast loading. Would be grateful for any ideas shared with me. NONNNNN 回答1: If you don't want to use jQuery you could always attempt CSS (only works in WebKit). JSFIDDLE Example CSS: ::-webkit-scrollbar { width: 15px; } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); background-color: #000000; } ::-webkit-scrollbar

How to set UI for all Components of a type in java swing?

我的未来我决定 提交于 2019-12-22 05:59:22
问题 I created my own MyScrollbarUI class to have a custom scrollbar look in my application. Now I have to do scrollPane.getHorizontalScrollBar().setUI(new MyScrollbarUI()); scrollPane.getVerticalScrollBar().setUI(new MyScrollbarUI()); on any ScrollPane I use. Is it somehow possible to tell Swing that it should use MyScrollbarUI on any scrollbar. Maybe via the UIManager ? 回答1: UIManager.put("ScrollBarUI", MyScrollbarUI.class.getName()); should do the trick. You need to have a public static

QLabel showing an image inside a QScrollArea

旧巷老猫 提交于 2019-12-22 05:29:27
问题 I've successfully implemented a Image Viewer (for DICOM) in Qt. I can see the image and I can zoom in and out correctly. Now, I want to see scroll bars if the image is too big to show when I zoom in. I've used the UI. I placed a QScrollArea . Inside, the QLabel . The verticalScrollBarPolicy is ScrollBarAsNeeded . The horizontalScrollBarPolicy is ScrollBarAsNeeded . The problem is: it doesn't work. I zoom in, but no scrollbar appears. Second try: using a layout inside the QScrollArea. So now

How to make scrollbar overlapping page content

Deadly 提交于 2019-12-22 05:16:42
问题 I want to make scrollbar that overlaps the page. I wonder if there is a way to do it with pure CSS. I read an article about styling scrollbars with CSS (https://css-tricks.com/custom-scrollbars-in-webkit) but I didn't get a result I wanted. I think it would be possible to do it with some JavaScript and HTML element with fixed position, but I prefer to do it with CSS. 回答1: You can try changing the background of the Scrollbar to transparent- ::-webkit-scrollbar-track {background: transparent}

Android keyboard obscures EditText

…衆ロ難τιáo~ 提交于 2019-12-22 05:15:22
问题 In my application, when I click on an EditText view, the virtual keyboard obscures the view, so I can't see my edits. How can I resolve this programatically? 回答1: I recommend this article that covers the various modes for how the IME and the underlying activity interact from a UI layering perspective. Without knowing more about your application, it is impossible to state whether you want resizing or "pan and scan" modes. 回答2: Oh, It happens to me, But I solve it <activity ...............