height

Facebook App - Javascript Set Height of Canvas?

安稳与你 提交于 2019-12-13 07:11:13
问题 I am trying to set the height so I don't have a scrollbar in my facebook app, seen HERE I have used jQuery to create the canvas plugin using the GRAPH API and have tried adding the following codes to edit the height but none work. Anyone have any ideas? In my scripts.js I try adding the following to the bottom: FB.Canvas.setAutoResize(); //doesn't work Also tried the following: window.fbAsyncInit = function() { FB.Canvas.setSize({ height: 2500 }); }; //doesn't work either 回答1: window

Displaying height disables jquery ui resizable

扶醉桌前 提交于 2019-12-13 06:14:06
问题 I'm trying to create my own calendar (sort of) by using jQuery UI. I've added resizable and sortable to my list items and it all works perfect. The next was to display time inside the list items that update when the list items get resized. I wanted to start by displaying the height inside the list items, but doing that disables the resizable function. Like so: http://jsfiddle.net/PaulvdDool/9PXNc/ Displaying the height outside the list doesn't affect the resizable event. Like so: http:/

White Space around List View Items

风流意气都作罢 提交于 2019-12-13 06:01:28
问题 I am having a list view and its list items are generated using Array List and it creates unecessary white space which occupies much space. How do I remove it from the list items? Here is my list view: <ListView android:id="@+id/list" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:divider="@android:color/transparent" android:dividerHeight="10.0sp"/> And my list items: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http:/

Android: get height of tab bar?

天大地大妈咪最大 提交于 2019-12-13 05:40:42
问题 Is there any way I can get the height of the tab bar in Android? Its getHeight() method seems to only return 0. Thanks! 回答1: Try this in your code . for (int i = 0; i < tabHost.getTabWidget().getChildCount(); i++) { RelativeLayout relativeLayout =(RelativeLayout)tabHost.getTabWidget().getChildAt(i); relativeLayout.getChildCount(); TextView tabhostText = (TextView) relativeLayout.getChildAt(1); tabhostText.setTextSize(20.0f); // you can set the TextSize of your tab also tabHost.getTabWidget()

jQuery box height problem - using slideUp/Down

ぃ、小莉子 提交于 2019-12-13 05:40:11
问题 I have a box on my site that when a button is clicked, the box slides up, some new text is loaded into it, and then it slides down revealing the new text. Here is the code I have written for it in jQuery: $("#generate").click(function(){ var $target = $("#lyric"); $target.slideUp(); $target.queue(function(){ $("#generate").text('Loading...'); $target.load('lyrics.php', function(){ $("#generate").text('Get another lyric'); $target.dequeue(); }); }); $target.slideDown(); }); The problem is that

Height different in IE FF Chrome

杀马特。学长 韩版系。学妹 提交于 2019-12-13 04:43:50
问题 Good day, after struggling with a problem at my previous post, i entered another problem caused by different heights in web crossing. Example: http://www.sushitaksteeg.nl/secret/template.html Download: http://www.sushitaksteeg.nl/secret/Port.rar If you press on the scroll page button, the page scrolls perfectly in FF but not in Chrome and IE. I did this by setting the next property in styles.css: <-- #footer{height:870px;} --> Again i have searched google and stackoverflow, and tried CSS

jQuery - How to execute script as soon as we know true height (with images) of ajax-loaded element?

不问归期 提交于 2019-12-13 04:10:36
问题 Say I have a page index.html where my scripts are running, and a page content.html which is a very large, rich document full of images and styled text. I'm loading the contents of content.html into <div id="container"></div> on my index.html with: $.get("content.html", function(data, textStatus, jqXHR) { $("#container").html(data); contentLoadedCallback(); }); In the above example, contentLoadedCallback() is called as soon as the content html is inserted into the container. But what if I want

Equal Height Columns with Cross-Browser CSS

谁说我不能喝 提交于 2019-12-13 04:09:20
问题 I want to have divs of the same height. http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks does not work for be because my divs have a border, and the method described assumes, that they have not. A jQuery solution I could not make work, because my divs resize late because of ajax and menu clicks and I can not find an event for this. 回答1: While it seems the plugin doesn't support borders, it does support padding. Try wrapping them in another div, and then

JQuery height condition

和自甴很熟 提交于 2019-12-13 03:45:33
问题 $(document).ready(function() { var pic = $(".pic"); // need to remove these in of case img-element has set width and height $(".pic").each(function() { var $this = $(this); $this.css({width: 'auto', height: 'auto'}); var pic_real_width = $this.width(); var pic_real_height = $this.height(); if(pic_real_width<100){ $(".pic").css("display","none"); } }); }); I need this to check for the height of all images of the .pic class (it already does this) and then add a display:none to those who have a

Make a div fill the whole page in height

不问归期 提交于 2019-12-13 03:44:23
问题 I have a page with this structure: topbar (100% width) sidebar content i want the sidebar to fill all the remaining space of the screen in height. I've tried with height: 100% in my css but doesn't work. How can i do this? There is a way to do it using css or i have to use Javascript? 回答1: To achieve this you need make sure the sidebar's parent containers have heights of 100%, too. So, if you have a sidebar div, you have the body container, and the html container. html, body, #sidebar {