I tested, it works in dynamically created arrangement like vertical or horizontal arrangement. If you are using a loop to create multiple arrangements then only one progress bar will be created this is because every arrangement requires a unique instance of progress bar create method.
May be I will try adding id feature if this is necessary.