torsdag 16 augusti 2012

JQuery UI Dialog width issue in IE 7, solution ?!

JQuery UI Dialog width issue in IE 7, solution ?!

PROBLEM==================================================
I get a scroll bar on every dialog.  Looking at it, the content height is apparently calculated by the UI.  In FF, that is the size of the content, INSIDE the padding.  IE seems to calculate the size PLUS the padding, so there is always a scrollbar for the amount of the padding.

SOLUTION==================================================

I had this problem, and found that adding a call to height("auto") after creating the dialog seems to have done the trick for now. (Tested IE 7, Chrome, Firefox) E.g.




http://forum.jquery.com/topic/jquery-ui-dialog-size-scrollbar-issue-in-ie

ANOTHER SOLUTION==========================================

var tag = $("<div></div>");
//IE7 workaround
var w;
if (navigator.appVersion.indexOf("MSIE 7.") != -1)
    w = 400;
else
    w = "auto";

tag.html('My message').dialog({
    width: w,
    maxWidth: 600,
 
http://stackoverflow.com/a/9950298 
 

FlashPlayer issue in Ubuntu, probable FIX

FlashPlayer issue in Ubuntu, probable FIX

Try using gnash instead of Flashplayer. To install gnash sudo apt-get install gnash . I have used it for over a year and gnash seems to work better than flash.
If you feel better uninstalling flash then installing gnash you can do this by opening terminal


sudo apt-get purge flashplugin-nonfree flashplugin-installer gnash gnash-common mozilla-plugin-gnash swfdec-mozilla
sudo rm -f /usr/lib/firefox-addons/plugins/libflashplayer.so
sudo rm -f /usr/lib/mozilla/plugins/libflashplayer.so
sudo rm -f /usr/lib/mozilla/plugins/flashplugin-alternative.so
sudo rm -f /usr/lib/mozilla/plugins/npwrapper*flash*so
rm -f ~/.mozilla/plugins/*flash*so
sudo apt-get install gnash


http://askubuntu.com/questions/54044/choppy-flash-video-playback