Questions tagged [containment]

94 questions
0
votes
0 answers

jQuery draggable containment custom shape

I want to dragg a object with the red lines as bounderies. (check image below) I looked for examples but all i can find are square and circualar shapes. i tried a element with css transform rotate attachted to it -> didn't work i tried svg shape…
SteinB
  • 162
  • 1
  • 11
0
votes
0 answers

Javascript draggable containment - jQuery alternative

Here's my problem: A system that i'm building requires a custom version of jQuery's draggable function. The problem is that i can't get the element itself to be contained, i've tried several methods. FIDDLE: http://jsfiddle.net/f8w8v/18/ Method 1 …
Jeroen Vorsselman
  • 803
  • 1
  • 9
  • 19
0
votes
1 answer

jsPlumb multiple containment drag parent

I have following HTML
IN PERSON
user1184777
  • 987
  • 2
  • 19
  • 38
0
votes
1 answer

jsPlumb multiple containment are not working together. is this bug?

I have following HTML
I am adding draggable through JS dynamically. And using following JS code to make them…
Amit Kumar Gupta
  • 7,193
  • 12
  • 64
  • 90
0
votes
1 answer

How does the behavior of `in` differ from `index` in python lists

Much to my own frustration, I managed to make a list of objects in python such that the following fails: if foo in lst: lst.index(foo) # ValueError: is not in list I assure you, no trickery here: foo is an object with a custom __hash__…
00500005
  • 3,727
  • 3
  • 31
  • 38
0
votes
1 answer

Dealloc is called on UIViewControllers which are stored in a NSMutableDictionary and presented by UIViewControllerContainment

I've built a custom UITabBarController with Storyboards/Segues and UIViewController containment. Here is a link to it: https://github.com/mhaddl/MHCustomTabBarController The UIViewControllers which will be presented by the Container are stored in a…
mhaddl
  • 885
  • 1
  • 9
  • 18
0
votes
1 answer

iOS container view controller adds child's view in portrait orientaton

I am developing an iPad app that should only support landscape orientation. I use these two methods to add a new child view controller to my container view controller: - (void) assignFirstChildViewController:(UIViewController*)controller { …
Teo
  • 3,394
  • 11
  • 43
  • 73
0
votes
2 answers

Create instance of generic type in Java when parameterized type is contained?

This is a follow-up to my question: Create instance of generic type in Java when parameterized type passes through hierarchies? For attempting to create a new generic from a contained class, I tried to adapt Steve B's approach of creating an…
Jorocco
  • 83
  • 2
  • 9
0
votes
1 answer

View controller containment Z position

I have the following issue: I create a view controller and I add a child view controller inside it. The child view controller view is inserted below an existing subview (button A) of the parent view controller. When I try to transition to a new…
Mihai Popa
  • 892
  • 1
  • 8
  • 25
0
votes
1 answer

jQuery UI Draggable issue with containment option

I'm trying to have an image inside a div of same width to be draggable in the limit of the div. It's difficult to explain but one side of the image (top or bottom) can leave the div but you cannot have a gap between the edge of the image and the…
maxwell2022
  • 2,818
  • 5
  • 41
  • 60
0
votes
1 answer

Child View Truncated?

I have a child view controller looking like this: I am embedding it into another parent view controller, @implementation ContainmentViewController - (id)initWithCoder:(NSCoder *)decoder { if(self = [super initWithCoder:decoder]) { } …
xjq233p_1
  • 7,810
  • 11
  • 61
  • 107
0
votes
1 answer

Implement containment relationship

How can I implement a strong containment relationship of uml. Also called composition. To give an example in Scale: I have a class component, which may contain zero or more Interface: class Component (name: String, description: String, Interaction:…
user1826663
  • 357
  • 1
  • 3
  • 15
0
votes
1 answer

JQueryUI Draggable - Issues setting Containment [x1,x2] values

I am having trouble setting the containment value of the jqueryUI draggable function when using the [x1,y1,x2,y2] format. Here is the js: