asp.net telerik radWindow icon size - asp.net

I'm facing a trouble with a RadWindow, from the Telerik Library. I'm adding Telerik in my asp.net project through DLLs and when I try to load an icon in the top left part of the window, it doesn't display anything.
After searching for a bit, I found that the size of my icon was the source of my miseries. I'm trying to load 128x128 icons where the width and height of my RawWindow icon is set to 16x16 in the css file.
Now my question : How can I manage to change the width and height of my RadWindow's icon ? I have subclassed RadWindow so I could write some CSS in my code-behind, but after trying for a while, I can't manage to find a way to do it !
I also tried to write some css code in my website default css file, without much success neither!
Can somebody provide me a solution to this please ?

Your title seems to indicate that you have an issue setting the icon size; however your question seems to indicate that your issue is really how to set the window size. If the latter, then this should do it:
Client-side, you can use setSize
wnd.setSize(400, 400);
And server-side you can use Width, Height, etc.

Related

Customize JavaFX WebView scrollbar width

Is there a way to adjust the thickness of the scrollbars of a WebView using the stylesheet used by the whole JavaFX application?
I am a bit confused since
on the one hand I read that the scrollbars are not part of the JavaFX UI control and therefore can only be customized by a stylesheet set on the web engine (webview.getEngine().setUserStyleSheetLocation(..)) which means I have to write another CSS trying that the scrollbars look like all other scrollbars in the application
and on the other hand I can see that the scrollbars are obviously correctly customized using the JavaFX CSS except the thickness of the scrollbars (and that the vertical scrollbar is always shown even if the loaded page requires no scrollbars at all)
So where am I wrong and which is the correct way to solve this problem?
Thanks in advance!

django cms popup window height is too big

I'm using DjnagoCMS 3 and I have annoying problem with all editing popup windows. It happens when page content is bigger (higher) than browser window. When I try to edit text or any cms plugins (double click on content) it shows popup window, but it's height is greather than height of monitor resolution.
If content length is not so big, everything is ok.
Problem is somewhere in js/css of django cms.
I had the same problem and found the solution. The problem is that this line:
https://github.com/divio/django-cms/blob/release/3.0.x/cms/static/cms/js/modules/cms.modal.js#L137
returns the content-height, not the window height, because of this:
jquery $(window).height() is returning the document height
So all you need to do to fix this is declare a doctype in your template.

Set textarea height to height of text

I want to use a textarea on a form, but I want it to be a single line high when the content is empty (i.e. on a new form), and only resize to the height of the content on the edit form.
I've been playing around with a few css settings but I'm really not skilled with front-end development, can someone point me in the direction of the attributes I need to be setting to make this happen?
Preferably without JS, but that seems to be the only solution of any I've found thus far. It seems messy and slow when you add in multiple textarea's auto resizing on a single form.
You could use this plugin for jQuery: http://www.jacklmoore.com/autosize

Height adjustments in Flex NavigatorContent

How is it possible to (automatically) adjust the height of a Flex (4) application at runtime so that only the HTML-page scroll bar is shown, not any Flex scroll bar?
I'm using a ViewStack control which will change always its content. So every time some new content (NavigatorContent controls) is shown (which apparently will have different heights) i want the application height to adjust its height in a way it is reflected in changing only the height of the HTML-page.
I have the slight feeling that this means changing the height of the SWF at runtime! Is this true? If yes how to tell the page ? Is this possible?
I hope i explained my problem as close as possible.
Thanks in advance.
If you haven't already come across a solution to this here's a blog post described a solution for this : http://blog.wezside.co.za/blog/fullscreen-flash-with-browser-scrollbar/
It's a little more then you may be looking for so here's the general gist of it:
Set the embedded swf in the html height to 100%
Then on page change in flash, use an ExternalInterface call to set the height of the container div to your flash content.
Enjoy browser scrolling for your flash/flex app :P
This is the solution which worked (for me)!

visual web developer resize "all images" together?

I have a weird problem with images in visual web developer,
I cant change my images properties from properties panel (my changes don't take effect) and all images in my website have gotten the same size
when I resize one image (by dragging the border), all images get that new size?
any idea?
Somehow visual web developer read the image class in the CSS file instead of the properties of the control because there is something like this in my CSS file:
img {
width:260px;
}
Yes, basically the width and height properties of the HTML <img /> have been deprecated for some time, you are recommended to use styles instead.
VS then takes this to the extreme, and instead of using inline styles, will create a new style in the default style sheet location for img, as you've discovered.
However, unless you are using the image full size somewhere you are better off resizing the image before you upload it to the server, saving on everyones bandwidth.
Also, IE does pretty poor things with it's default scaling routine, but you can turn on cubic sampling through css.

Resources