Posts

javascript - JqueryUI and bootstrap interference with dialog display -

i'm having problems getting jqueryui , bootstrap work together. example here https://jsfiddle.net/2hcwxudd/1/ my code: <div id="dialog" title="welcome"> <h1>hello world</h1> </div> $(function () { $("#dialog").dialog({ show: { effect: "fold", duration: 500 }, }); }); you can see on dialog show there small resize event @ end of animation looks horrible. can't seem figure out what's causing or how resolve it, removing bootstrap resolves problem. i've tried noconflict (it's not js css thats causing it), , i've tried using various themes seem have same problem. any appreciated this due box-sizing in bootstraping, have unset box-sizing property like, .ui-dialog,.ui-dialog *{ box-sizing:unset !important; } demo

javascript - Why does using transform="translate(x, y)" make scrollbar unclickable? -

i've spent way long trying figure out...i have svg g elements , foreign object. issue is, when g element gets translated, scrollbar have within foreign object becomes unclickable. (i using chrome need working on...firefox seems working fine though) i have example in jsfiddle here . if remove transform="translate(...)" in first g element, scrollbar becomes clickable...but position bit off. have hover few pixels on top of scrollbar or up/down arrow interact it. idea why transform=translate() messing scrollbar , how go fixing this? .content { width:100px; height:100px; font-size:1.5em; overflow : auto; background-color:yellow; } <svg width="1243" height="651"> <g class="graph" transform="translate(200,20)scale(1)"> <g class="output"> <g class="nodes"> <g class="node update" transform="trans...

vb.net - crystal reports print summary of a group in another group footer -

i trying print report of format: name (formula: lname,fname) details name group summary of group1(by week) sumary of group2 (by name) summary of group 3 in group2 footer i want consolidated summary of 1 group eg: somerset, mark 6-12-2009 writer $400 7-12-2009 actor $500 year 1 $900 6-12-2010 unemployed $0 7-12-2010 writer $600 year 2 $900 writer $1000 actor $500 unemployed $0 somerset, william 5-12-2009 writer $300 7-12-2009 actor $300 year 1 $600 5-12-2010 unemployed $0 6-12-2010 writer $800 year 2 $800 writer $1100 actor $300 unemployed $0 the report grouped name formula. cannot create subreport! can please help! create 2 more formulas , place in details after regular fields , take summary in section ...

wordpress - add a "added to cart message" to page -

need help, added "the add cart short code" items on page. wanted add add cart notices page well. i don't have lot of experience wordpress or woocommerce. added class "woocommerce-message" div , display function which display message, shows div when there no message can 1 please show me correct way this, step step example? thanks appreciate help i believe page needs have wc_print_notices(); on it. notices should appear when needed.

vb.net - Linq statement: Inner function call conflicts with enclosing method name -

cryptic title, start code poses problem , clarify afterwards: public readonly property max double dim res = (from double() in values select a.max).max return res end end property values jagged array of double, private values()() double that initialized elsewhere. want use linq extract overall maximum value. code above gives following exception first .max : bc30978 range variable 'max' hides variable in enclosing block or range variable defined in query expression. if change property name else getmaximum error disappears. why can't call .max function double() variable a selected jagged array? call has in slightest name of method in? i using visual studio community 2015 on windows 8.1. both answers in vb.net or c# appreciated. workarounds as workaround can example following: private function getmax(a double()) double return a.max end function public readonly property max double dim res = (from ...

Is it possible to delete an object's property in PHP? -

if have stdobject say, $a . sure there's no problem assign new property, $a , $a->new_property = $xyz; but want remove it, unset of no here. so, $a->new_property = null; is kind of it. there more 'elegant' way? unset($a->new_property); this works array elements, variables, , object attributes ** edit ** i don't know how using unset() , how works me : $a = new stdclass(); $a->new_property = 'foo'; var_export($a); // -> stdclass::__set_state(array('new_property' => 'foo')) unset($a->new_property); var_export($a); // -> stdclass::__set_state(array())

c# - How to coerce using direct class structuremap -

i have problem writing valid configuration classes. suppose have: interface ia{} class abstract : ia {} class a1 : a, ia { private readonly ib _ib; public a1(ib ib) { _ib = ib; } } class a2 : a, ia { private readonly ib _ib; public a1(ib ib) { _ib = ib; } } and want inject classes constructor of others, , think there have no problems that, doing this: for<ienumerable<ia>>.use(x => x.allinstances<a>()); but don't know resolve problem property ib, if want use different _ib class a1 , class a2. interface b{} class b1 : b {} class b2 : b {} i know if have 1 class b , class can this: for<ia>().use<asample>().ctor<ib>().is<bsample>(); but problem try use this: for<ia>().conditionallyuse(c => { c.if(t => t.concretetype == typeof(a1)) .thenit .is.constructedby(by => new a1(by.instanceof<b1>())); c.if(t => t.concretetype == typeof(a1)) .thenit...