nus-cs2103-AY1718S1 / forum

Discussion Forum
5 stars 0 forks source link

VBox does not contain itself #184

Closed Juxarius closed 6 years ago

Juxarius commented 6 years ago

Hi guys, i got a problem here that i cant really detect the error since the UI cannot be debugged

image

So above is the layout of my profile which i have put in scenebuilder and you can see from the fxml file below, no fx:id or additional style changes have been made to the VBoxes

image

However, when i run the App, all my bindings are right, except that the 2nd VBox in the Hbox seems to have flooded the entire centre panel

image

Can see that the VBox is handled with default VBox formatting but i have no idea where i have gone wrong since the VBox doesnt have an fx:id, i dont think the code could have made it out of place, and the 1st VBox was placed properly but not this one, i have tried using a 1 by 2 GridPane but the same result occurs

Thanks in advance for any help!

damithc commented 6 years ago

@Juxarius is there any link to the PR so that the reader can see the diff to the fxml file?

Juxarius commented 6 years ago

oh yea, the .fxml file is InsuranceProfilePanel and can be found in this PR The overall PR is found here

damithc commented 6 years ago

You need to isolate the problematic code if you want someone to examine it. May be create a tiny PR that only has the code related to this problem?

image

Juxarius commented 6 years ago

feature uses a lot of other code so it is hard to isolate, however, implementing it on a clean addressbook doesnt seem to have this issue, ill figure it out on my own, thanks for the advice

Juxarius commented 6 years ago

Problem solved, the scrollPane had a default white background when a style class isnt added, it was the one fogging the screen