position

jQuery UI draggable & position relative, change to absolute on resize

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem with jQuery UI. When i set elements resizable, draggable & droppable, like this $("#ml1,#ml2,#ml3,#ml4,#ml5").resizable({ grid: [ 20, 10 ] }).droppable().draggable(); ,and that i resize one, his position pass to absolute... Why ? When i just set the object resizable & droppable, it's ok, the position style didn't change.. Here is a JSFiddle of the problem: http://jsfiddle.net/NLHYF/ I want that the objects that i resize keep their relative position. Thank you 文章来源: jQuery UI draggable & position relative, change to absolute

Excel Dependent drop down list anwsers

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have multiple drop down list that are dependent on each other and depending on which answers you choose i would like other lists to be determined. I will try to explain structure below **Position** **Fruit** **Location** **Thing** 1 Banana Mexico TV 2 Apple New York hat 3 Orange Tokyo pen 4 grape Canada bed London box Home So for example a dependency is if you select 'Banana' from 'Fruit' you are only going to be able to select certain options from Location, and Thing list. What i want to accomplish is something like this : if you choose

CSS color background over image

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: EDIT: Extremely important thing I forgot to mention, I can't edit the base html, only the css. This is for a reddit stylesheet. I want to have a semi-transparent color background over an image background as a tint. Here's what I've tried: This just shows the image: background : url ( image ) no - repeat , rgba ( 0 , 0 , 0 , 0.5 ); This shows the image and breaks its scaling (background-size: 100%;): background : rgba ( 0 , 0 , 0 , 0.5 ), url ( image ) no - repeat ; This makes the background entirely black, with the transparency

Shopify image slider- Always extend to users full screen

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: right so, i would really appreciate some help here. this code is well over my head Basically the site is 976px; the slider is fitting to this at most( if i extend the site size the slider stays at this 976px.) anything under this it works well. (scales to mobile) i want to increase the height it takes up and also i want to make it so it is width is always 100% of the users screen. index page calling the slider {% include 'slider' %} slider.liquid {% if settings.slider_home_enable %} <div class="flexslider" id="heroSlider" > <ul class="slides

update marker position in Google Maps in IOS app

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to update the marker position on the drawn route till it reaches its destination.Now here is the code for accessing server: NSURL * url = [ NSURL URLWithString :[ NSString stringWithFormat :@ "https://maps.googleapis.com/maps/api/directions/json?origin=%f,%f&destination=-32.90,151.80&waypoints=-33.30,151.50&alternatives=true" , marker . position . latitude , marker . position . longitude ]]; After this I am just updating the position of marker overtime I calculate the new position.The question arises how I am getting the new position

android camera position, google maps

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi I have the above code which animates the camera to a certain location. Is there anyway that I could move the camera position to a different position once it has finished the animation from the first location ? I am trying an if statement but it doesn't work. for instance: CameraPosition cameraPosition = new CameraPosition.Builder() .target(1stlocation) .zoom(12) .bearing(300) .tilt(30) .build(); map.addMarker(new MarkerOptions() .icon(BitmapDescriptorFactory.fromResource(R.drawable.green)) .position(1st Location) .flat(true) .rotation(245

Lat Long to X Y Z position in JS .. not working

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: var phi = ( 90 - lat )*( Math . PI / 180 ); var theta = ( lng + 180 )*( Math . PI / 180 ); marker_mesh . position . x = (( rad ) * Math . sin ( phi )* Math . cos ( theta )); marker_mesh . position . z = (( rad ) * Math . sin ( phi )* Math . sin ( theta )); marker_mesh . position . y = (( rad ) * Math . cos ( phi )); given the above my marker is not translating into the correct position on a 3D sphere ... thoughts? It is relatively close (on the same continent) but that close :\ given below ... it should be rendering in at lat : 41

ggplot2 - jitter and position dodge together

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to recreate a figure from a GGplot2 seminar http://dl.dropbox.com/u/42707925/ggplot2/ggplot2slides.pdf . In this case, I am trying to generate Example 5, with jittered data points subject to a dodge. When I run the code, the points are centered around the correct line, but have no jitter. Here is the code directly from the presentation. set . seed ( 12345 ) hillest 回答1: EDIT : There is a better solution with ggplot2 version 1.0.0 using position_jitterdodge . See @Didzis Elferts' answer. Note that dodge.width controls

Is it possible to change the position of Bootstrap popovers based on screen width?

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a list of items, and each one has a Bootstrap popover associated with it ( docs here ). They are initiated like this: $('#my_list li').popover({ placement: 'left' }); This works, but at small widths the popover is lost from the viewport. I'd like to make the placement conditional based on $(document).width(); , however I can't see a way to over-ride the initial options (e.g. at at width of around 1000px, switch the placement to 'above'). I've put together a simplified version at jsfiddle here . Many thanks. 回答1: placement can also

SDL Mouse position Cropped after resize

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm getting some strange behaviour with the mouse position in SDL. If I re-size the window bigger, the x,y positions from either mouse events, seem to be restricted to the original window Width and Height. If there some function call that I'm missing to tell SDL that the mousing area has increased in size. The relevant parts of the app: void Resize ( int width , int height ) { WindowWidth = width ; WindowHeight = height ; /* update OpenGL */ } void Init () { glClearColor ( 0.f , 0.f , 0.f , 1.f ); Resize ( WindowWidth ,