Questions tagged [containment]
94 questions
1
vote
0 answers
Dropped and Contained Div jumps around outside of Container
I'm a pretty new coder, going through a course for javascript and jquery. I stopped to play around with drag and drop features in jquery, and have gotten stumped on something.
Codepen - http://codepen.io/Allayna-1472610667/pen/ozvqNd

Allayna Groove
- 11
- 1
1
vote
0 answers
How to contain an Entity inside another Entity when persisting EMF models, when such a relation is defined in meta-model?
I am trying to create a.XMI file for some Data I got from database, from an already defined metadata. The ecore has defined entities like :
Entity A
|_Entity B
|_Entity C
|_Entity D.
But the model generated for me shows entities like…

EclipseSucks
- 11
- 2
1
vote
3 answers
UIPageViewController: outlets not initialized when viewDidLoad is called
I'm trying to create a detail view for documents. The top part of the detail view is a card-style layout of 90 pixels high, and below is a view pager switching between two controllers: InfoViewController (show some meta info) and…

Anthony De Smet
- 2,265
- 3
- 17
- 24
1
vote
2 answers
Avoid cyclic dependencies - need for mutual containment
In my GUI system, the main building block is Container class, which can be drawn (= is drawable). However, Container itself is a 'kind of a table' - it contains cells.
Cell class serves for layouting. The number of cells a container has is defined…

sjaustirni
- 3,056
- 7
- 32
- 50
1
vote
1 answer
When an inheritance turn into whole-part composition
Here is the definition of whole-part composition.
http://en.wikipedia.org/wiki/Object_composition
And here is the inheritance.
http://en.wikipedia.org/wiki/Inheritance_%28object-oriented_programming%29
I have encountered a question today and I can…

tahasozgen2
- 148
- 1
- 1
- 9
1
vote
1 answer
Fast multiset containment of lists in python
I have a iterator of int's coming from a table lookup, and need to check if their multiset is contained in a given fixed "multiset" ms. Currently, I sort ms in the beginning, and then sort the int's in my iterator and check the multiset containment…

Christian
- 527
- 6
- 19
1
vote
2 answers
issues with .sortable function in J query
Here is a JSfiddle I'm working with.
I'm trying to create two lists from which I can move each item in and out between them and changes will update below inside the update function / sort status div area.
My first alert on line 3 works but when I…

Nemi9
- 19
- 3
1
vote
1 answer
How can an object get its key from a HashMap?
Suppose I have a chessboard defined with a HashMap
HashMap chessboard = new HashMap ();
I declare the Position as
class Position{
int x;
int y;
}
When I am trying to make a class for Field object I encounter a…

Ivan
- 29
- 8
1
vote
1 answer
'NSInternalInconsistencyException', reason: 'custom navigation transition - no popping between different orientations!'
I'm facing a problem with UIViewController containment via MFSideMenu.
Problem is, on ViewControllers that support orientation, opening the side menu and selecting a different menu option (when the device is in landscape mode) causes the app to…

XCool
- 976
- 11
- 32
1
vote
0 answers
Best design pattern in iOS/objectiveC for displaying multiple selectable views that are in sync from a single data source
I am working on an app in which one View Controller has the responsobility of containing thre views.
Each and every one of this view has a datasource of somme measurements.
The views are in sync -> selectind one point in one view has a resemblence…

okipol
- 1,197
- 3
- 11
- 27
1
vote
2 answers
tableviewcontroller within container view controller: programatically selecting uitableviewcell, highlighting blinks
I am trying to programatically highlight a table view cell and trigger the selection logic by doing the following
NSIndexPath*indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView selectRowAtIndexPath:indexPath animated:NO…

Heisenberg
- 1,319
- 1
- 12
- 15
1
vote
0 answers
Jquery UI Draggable Containment
I have an image that I can drag around a container using jQuery UI.
I am using draggable("option", "containment", [x1, y1, x2, y2]) to set draggable containment which works perfectly.
I have written a zoom slider which zooms the image, then…

Ant
- 336
- 1
- 3
- 14
1
vote
1 answer
Handle tableview did select row at index path delegate method in container view controller
I have two view controllers added as a child view controllers in containerview controller and one view controller has AQGridView with song albums as items.When i select the album how can i navigate to another view controller that displays songs…

IceCream Sandwitch
- 285
- 2
- 5
- 21
1
vote
1 answer
iOS: Button events in Custom UIViewController Containment do not work
I am implementing a custom UIViewController Containment.
Also I am adding buttons to child view controllers' views
down in hierarchy.
The problem is that button events never fire when buttons
are in child view controllers down in hierarchy. They…

thstart
- 397
- 3
- 15
1
vote
0 answers
Handle UIButton in Child View Controller of Container View Controller
I am working on creating custom Container ViewController class and am able to create 5 sub viewcontrollers and able to move from one child view controller to other child using the following API:
transitionFromViewController:fromViewController
…

Srivathsa
- 606
- 10
- 34