Archimedes' law: a floating body displaces its weight, while a sinking body displaces its volume. The ice cubes were floating in the water, which means that their weight, not their volume, was forcing the water level up to the 12 oz.-mark. When the ice melted, their mass was simply added to the water, leaving it still at the 12 oz.-mark.