Merge lp:~ken-vandine/ubuntu-system-settings/rtm-1376763 into lp:ubuntu-system-settings/rtm-14.09

Proposed by Ken VanDine
Status: Rejected
Rejected by: Sebastien Bacher
Proposed branch: lp:~ken-vandine/ubuntu-system-settings/rtm-1376763
Merge into: lp:ubuntu-system-settings/rtm-14.09
Diff against target: 55 lines (+0/-45)
1 file modified
plugins/wifi/OtherNetwork.qml (+0/-45)
To merge this branch: bzr merge lp:~ken-vandine/ubuntu-system-settings/rtm-1376763
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Approve
Review via email: mp+242108@code.launchpad.net

Commit message

Remove the dialog internals resizing hack

Description of the change

Remove the dialog internals resizing hack

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, that was depending of having an uitk bug fixed, did that happen in the rtm serie? should be update the uitk depends?

review: Needs Information
Revision history for this message
Ken VanDine (ken-vandine) wrote :

The uitk fix landed in rtm over a month ago, not sure the specific version. It landed in rtm at least a month before hitting vivid

Revision history for this message
Sebastien Bacher (seb128) wrote :

Ok, let's land that then ;-)

review: Approve
Revision history for this message
Sebastien Bacher (seb128) wrote :

seems like we are not doing more rtm landing, so cleaning the list a bit, that one is rather going to be including with the vivid rebase

Unmerged revisions

940. By Ken VanDine

Remove the dialog internals resizing hack

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/wifi/OtherNetwork.qml'
2--- plugins/wifi/OtherNetwork.qml 2014-09-18 16:48:38 +0000
3+++ plugins/wifi/OtherNetwork.qml 2014-11-18 19:10:46 +0000
4@@ -31,51 +31,6 @@
5 objectName: "otherNetworkDialog"
6 anchorToKeyboard: true
7
8- /* The following is a (bad) workaround for bugs
9- #1337556
10- #1337555
11-
12- If the Dialog does not shrink after a user chooses e.g. WPA,
13- the anchorToKeyboard setting of OrientationHelper have no effect,
14- since the dialog never shrinks in size.
15-
16- This workaround resizes the Dialog.
17- */
18-
19- property int dialogVisualsHeight
20- function getVisibleChildren () {
21- var children = [feedback, networknameLabel, networkname,
22- securityListLabel, securityList, passwordListLabel,
23- password, passwordVisiblityRow, buttonRow];
24- var ret = [];
25- children.forEach(function (child) {
26- if (child.visible) {
27- ret.push(child);
28- }
29- });
30- return ret;
31- }
32-
33- function getVisibleChildrenHeight () {
34- var h = 0;
35- getVisibleChildren().forEach(function (child) {
36- h = h + child.height;
37- });
38- return h;
39- }
40-
41- Component.onCompleted: {
42- dialogVisualsHeight =
43- __foreground.height - getVisibleChildrenHeight();
44- }
45-
46- Binding {
47- target: __foreground
48- property: "height"
49- value: dialogVisualsHeight + getVisibleChildrenHeight()
50- when: dialogVisualsHeight
51- }
52-
53 function settingsValid() {
54 if(networkname.length == 0) {
55 return false;

Subscribers

People subscribed via source and target branches