7 Replies Latest reply: Jun 26, 2013 1:11 AM by neil wilkes RSS

    Button active area does not match Photoshop layer size

    malacca73 Community Member

      I have created several text-only buttons for a menu using Photoshop. When I reveal the active area in Encore, usually the bounding box for the active area is correct and goes right around the text, but for several of the buttons, the bounding box is way wider than the text. There is a simple graphical highlight that is also part of each layer group, but the bounding box is way larger than where that appears. There is nothing in any layer in the button group that accounts for the extreme width of the bounding box for the button in Encore. Any ideas?

       

      I have deleted the offending button groups and copied one that didn't have the problem, only to have the same extra-large bounding-box appear. Quite strange.

        • 1. Re: Button active area does not match Photoshop layer size
          Stan Jones MVP

          By definition, the "bounding box" includes all the elements of the button group in a rectangle. You either have an element you are not seeing, or one that includes parts that are not apparent.

           

          This is most likely to happen when you move a button group and one element does not move. Do you have any vector layers or such?

          • 2. Re: Button active area does not match Photoshop layer size
            malacca73 Community Member

            Thanks for your reply, Stan. I have been researching this and am aware that the bounding box will be just large enough to contain all elements of the button group. My button groups have only two layers, however - the text layer, and the small highlight shape that appears just to the right of the text. The bounding box is shooting way off to the left. I have attached a picture of the button layer group layers, the text with its highlight visible in Photoshop, and the bounding box as it appears in Encore.

             

            http://i255.photobucket.com/albums/hh141/malacca73/ScreenShot2013-06-14at102719PM.png

            http://i255.photobucket.com/albums/hh141/malacca73/ScreenShot2013-06-14at102728PM.png

            http://i255.photobucket.com/albums/hh141/malacca73/ScreenShot2013-06-14at102757PM.png

            • 3. Re: Button active area does not match Photoshop layer size
              Stan Jones MVP

              Limited time at the moment. See this thread re how to use various tools tyo adjust the text bounding box. But I think your problem is possibly a bounding box with the graphic.

               

              http://forums.adobe.com/message/4092604#4092604

               

              First, I would (using a duplicate menu) delete first the graphic layer, then the text layer to see which is making the large bounding box. Surely it is one or the other.

              • 4. Re: Button active area does not match Photoshop layer size
                the_wine_snob Community Member

                I agree with Stanley that something in the Button's/Buttons' Layer Set(s) is not being accounted for. The Layer Set is what defines each Button, and as Stanley says, will include all elements in the Button in a rectangle that includes all of them.

                 

                Can you Open your Menu in Photoshop, and post a screen-cap with the Layers Palette Open, with the various Layer Sets twirled open? That will tell us all of the elements in each Button.

                 

                Unfortunately, Ps does not show a Layer Set's bounding box, but Encore will, if you Select a Button, or all Buttons. A screen-cap from Encore, with the Menu Selected, and a Ctrl+A (Select All), WILL show all Bounding Boxes.

                 

                Good luck,

                 

                Hunt

                • 5. Re: Button active area does not match Photoshop layer size
                  malacca73 Community Member

                  All right, I finally got around to looking at this again, and, as expected (by me, even) there was a stray pixel or something in the highlight layer. I did a ⌘-T to get a transform bounding box in PS, and saw that for the highlight layer, it went way off to the left. Weird. So I then highlighted the area where I thought it might be and applied a Hue/Saturation to see if I could bring it out a little, since I couldn't see it. I tried raising and lower the brightness with a transparent background, a white background, and a black background. I couldn't see it on any background, even zoomed in to 800%. I still don't know what it was, but I just drew a marquee around the highlight that I wanted, inverted the selection and deleted, and now the bounding box for the button is as it should be in Encore.

                   

                  The extra weird thing is that this seemed to happen on random buttons in my design. In PS, I would create a new button group by duplicating the one above it, then move it straight down below the previous button. I replaced the text and then moved the highlight a bit to the left or the right to be in the correct spot in relation to the new bit of text. And that duplicted layer group which had the correct bounding box with no extraneous bits in the highlight layer would then all of a sudden have the incorrect bounding box and apparently some little bit that PS could see, though I couldn't. Strange.

                   

                  So, still a bit mysterious, but thanks for your help and ideas.

                  • 6. Re: Button active area does not match Photoshop layer size
                    Stan Jones MVP

                    Thanks for reporting. Odd spontaneous pixel appearance!

                    • 7. Re: Button active area does not match Photoshop layer size
                      neil wilkes MVP

                      This may not be much help, but I have found it is very easy indeed to accidentally add a pixel in PS (although your workflow suggests this has happened, given the method described I cannot for the life of me see how). I have done it myself by selecting the marquee tool, clicking in the wrong place & trying again only to find I have this additional bit way out of whack with the rest.....

                      Point is that it is very easy to get things wrong in PS.....and not notice.