# Projucer not generating 'relative to' resize code

**URL:** <https://forum.juce.com/t/projucer-not-generating-relative-to-resize-code/26450>\
**Category:** General JUCE discussion\
**Created:** [February 17, 2018, 7:12pm UTC](https://forum.juce.com/t/projucer-not-generating-relative-to-resize-code/26450 "2018-02-17T19:12:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dongoodeve](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dongoodeve/32/10151_2.png) [@dongoodeve](https://forum.juce.com/u/dongoodeve)\
**Post date:** [February 17, 2018, 7:12pm UTC](https://forum.juce.com/t/projucer-not-generating-relative-to-resize-code/26450/1 "2018-02-17T19:12:15Z")

</div>

Juce 5.2.1

Using projucer to redesign an old dialog. I have set up a new GroupComponent and had placed a number of components relative to that. When I ran the code, none of them appeared. On investigation, the dialog ::resized method contains no code for any of the components relative to the group component. If I change them so they are relative to the parent component - their resizing code appears. I know this _was_ working in the past. Is this a known issue?

Second issue - label colours appear ‘white’ in the projucer, and black when the code runs. I am having to add the colour setting code manually. Again - this appears to be a new issue.

All input welcome

---

<div class="post-metadata">

**Author:** ![pfbr9a](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@pfbr9a](https://forum.juce.com/u/pfbr9a)\
**Post date:** [March 15, 2018, 10:40am UTC](https://forum.juce.com/t/projucer-not-generating-relative-to-resize-code/26450/2 "2018-03-15T10:40:03Z")

</div>

I’m getting this too: the error is that when a component is set to be relative to another, the Projucer puts the setBounds() code in the constructor instead of the resize() function.
